## The problem

Issue crewAIInc/crewAI#2746 (closed, 21 comments): ### Description Hello, I call Knowledge with JSONKnowledgeSource(file_paths=["log.json"]) in CrewAI, and I use Huggingface as Embedding, but I get an error like the one below. When I use StringKnowledgeSource instead of JSON, it does not give this error and does the operation. I think there is a problem with JSON. The error I get is: [2025-04-26 14:27:54][ERROR]: Failed to upsert documents: Request URL is missing an 'http://' or 'https://' protocol. in upsert. Code: ` json_source = JSONKnowledgeSource(file_paths=["log.json"]) crew = Crew( agents=[agent], tasks=[sample_task], process=Process.se

## The verified fix

Contributor Vidit-Ostwal identified a bug in crewai 0.121.0 specific to .ipynb notebooks: reporter fzozyurt confirmed 'the problem was solved when I tried it in Python' (.py files instead of the notebook). If hitting the upsert error, run as a plain Python script or upgrade past 0.121.0; also verify the embedder config uses an api_url with http(s):// for HuggingFace TEI embeddings.