22 questions
2
votes
1
answer
218
views
JSONDecodeError while using HuggingFace Inference API with LangChain for Embeddings
I’m trying to generate embeddings using the Hugging Face Inference API with LangChain in Python, but I’m running into issues. My goal is to use the API (not local models) to generate embeddings for ...
0
votes
0
answers
55
views
Tweepy: Cannot upload media using Twitter API v1. Error type: `simplejson.errors.JSONDecodeError`, error: `Expecting value: line 1 column 1 (char 0)`
`# Create Client object with OAuth 2.0
client = tweepy.Client(
consumer_key=self.twitter_consumer_key,
consumer_secret=self.twitter_consumer_secret,
access_token=self.twitter_access_token,
...
0
votes
0
answers
41
views
JSONDecodeError: Extra data: line 1 column 2 (char 1) [duplicate]
I am trying to parse the content of an API response, which is of the type application/json. However, I am getting the following error:
JSONDecodeError: Extra data: line 1 column 2 (char 1)
The API ...
0
votes
1
answer
84
views
json.decoder.JSONDecodeError: Extra data - error when reading from database using python
I am trying to read a json column from SingleStore database using 'singlestoredb' library in Python. Below is the code.
import singlestoredb as s2
import pandas as pd
query = """
...
0
votes
0
answers
26
views
json.loads can't parse valid NDJSON [duplicate]
I try to read a NDJSON file, but I raise the following error.
Traceback (most recent call last):
File "C:/Users/json2csv.py", line 5, in <module>
json_data = json.loads(data)
...
0
votes
0
answers
23
views
Need help converting a basic valid JSON string object (from db) into a PHP object using json_decode
I am having trouble converting a basic valid JSON string object into a PHP object using json_decode (it shows as null).
I have tried several things but so far still not working. I'm sure I am missing ...
0
votes
2
answers
826
views
System.Text.Json.JsonException: 'The JSON value could not be converted to System.Collections.Generic.List`1
I am attempting to build a WPF Application to store Holiday Details in a SQL Server database. I request an address from end user and attempt to GeoCode the address. To do this I make a web request ...
-2
votes
1
answer
106
views
Error in loading JSON data -JSONDecodeError
I am trying to get json data in a container using following code:
import requests
import pandas as pd
import json
from bs4 import BeautifulSoup
url = 'https://www.nseindia.com/api/quote-derivative?...
1
vote
0
answers
22
views
Is there a way to open a file with a csv extension that has the file format of an XLS file, using python?
I have a file with .csv extension with an XLS file format.
Whenever I want to read it via python (openpyxl or xlrd) it gives a UnidecodeError.
When I manually save the file as .csv than I can read it ...
0
votes
1
answer
878
views
Error with OpenAI ChatCompletion: JSONDecodeError and Cloudflare Block
I'm trying to make a tkinter program that works with chat gpt. When the bot is supposed to generate a response, I get these errors (I've only included the significant parts of the long error response):...
0
votes
1
answer
78
views
Problem to retrieve json content from url in php
I use PHP and would like to retrieve data from url, json decode it and pass all entries with its field data into an array.
The url is out of my control and contains data in a format that looks like ...
0
votes
2
answers
71
views
Python web scrape script producing "JSONDecodeError Expecting value" after working consistently for over a year
I have been using the following code to scrape a table from a website and put it into an Excel file for a couple of years. All of a sudden, it has stopped working and I can't figure out why. Here's ...
-2
votes
1
answer
248
views
how to solve "value_error.jsondecode" when fetch POST?
here my full code before the question,
async function fetchApi() {
const options = {
method: "POST",
headers: {
Authorization: auth,
"Content-Type": "...
0
votes
3
answers
2k
views
Confluence REST API - HTTPError: 404 Client Error... appended `rest/api/content/<page_id>` at end of URL
Goal: Establish connection to Confluence page, via. atlassian-python-api==3.41.1.
Configuration:
Username - e-mail address
Password - API key (regenerated many times)
Permissions:
Contacted admins
...
0
votes
2
answers
378
views
Weaviate - push records in batch errors with JSONDecodeError [closed]
I’m trying to add records in a batch, but after I add my objects to the batch, I always get a JSONDecodeError when I assume the batch is being sent to my Weaviate class.
client.batch.configure(...
0
votes
1
answer
33
views
Receive response from DB Laragon
I recently returned to dart programs with the flutter framework and I am not able to resolve a problem from the response I receive from the laragon database.
I'm having a problem with response.body
...
1
vote
2
answers
732
views
JWT::DecodeError (OpenSSL 3.0 does not support nil or empty hmac_secret):
I am still new to building projects using rails/react I am using devise to authenticate the user however, when I login I am getting an internal server error that says JWT::DecodeError (OpenSSL 3.0 ...
0
votes
0
answers
268
views
Contact form {"error":true,"message":"404 not found!"}
I got an error after sending contact form and the message doesn't come in my admin panel. Any ideas?
{"error":true,"message":"404 not found!"}
PHP version: 7.3.33
...
0
votes
0
answers
443
views
Python JSON: raise JSONDecodeError from parse_constant
I am currently using the json module to load some JSON content and I need to exclude NaN values. The standard way to do this seems to be to implement a parse_constant method and then pass this method ...
0
votes
0
answers
586
views
JSONDecodeError - request.body returns empty string Django
I am trying to access some JSON data from my views.py page but it seems i'm sending empty strings?
My JS code
document.querySelector('#compose-form').onsubmit = () => {
const recipients = ...
0
votes
1
answer
114
views
TypeError: map[$_get] is not a function , Dart
I am writing a program that uses HTTP to get a list of themes from a server, and when transforming the data from JSON I am getting this error.
TypeError: map[$_get] is not a function
packages/outlook/...
-2
votes
1
answer
117
views
JSONDecodeError when trying to write to JSON file
I have a json file where each entry has a corresponding list. This is what it looks like:
{
"/home/onur/PycharmProjects/file-tagging/data/world_building_budget.txt": [],
"/home/...