openai / openai/tiktoken

SSLError: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url

Open
#281 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
19.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Issue
I ran encoding = tiktoken.get_encoding("cl100k_base") and encountered the following error:
SSLError: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))

Cause & Solution
Our hypothesis is that we are not allowed to making a request to a host outside of the kubeflow VPC.
Q1: Would you say this is the primary cause?

If the answer to Q1 is yes:
Q2: Does tiktoken allow us to read from a file system artifact instead of making a web call?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the tiktoken.get_encoding("cl100k_base") request in the reported Kubeflow VPC environment and verify whether access to openaipublic.blob.core.windows.net is blocked. Then inspect the encoding-loading entry point to determine whether a filesystem artifact is supported; done means answering both cause and local-loading questions with evidence.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.