Skip to main content

All Questions

Tagged with
0 votes
0 answers
30 views

Trouble verifying Google token in Flask application

I'm developing a web application using Flask for the backend and React for the frontend, integrating Google Sign-In using OAuth2. I have a /verify-google-token endpoint in Flask to handle POST ...
Liam O'Brien's user avatar
-1 votes
1 answer
96 views

Playwright unable to Fetch JSON Data in Offline HTML File using Javascript

I'm trying to render an HTML form using data from a JSON file with JavaScript, so that i can save a populated form as a pdf. When I open the index.html file directly from the filesystem (using the ...
Akhil Babu's user avatar
0 votes
1 answer
18 views

PYTHON / FLASK / JS error when sending Jsonified data - SyntaxError: Unexpected end of input

So, I have a flask server that sends me these variables: responseAPI = { "data": detection_data["Race"], "gender": detection_data["Gender"], ...
Pedro Morais's user avatar
0 votes
0 answers
28 views

Problems with python Tornado server

I'm trying to create a simple game on javascript where people can play together, I had issues on the communication between the client and the server using a JSON file. Without doing any changing on my ...
Luca Favaretto's user avatar
0 votes
0 answers
46 views

How to convert a matplotlib plot data into JSON file to run in my react component?

So, my friend has a ML model which does a prediction based on a company's stock. The output is displayed using matplotlib plot graph and it does the job. Now, I have a react based website in which I ...
Utkarsh Raj Sinha's user avatar
0 votes
0 answers
35 views

Cant convert "application/x-www-form-urlencoded" to "application/json" JavaScript Flask

I'm trying to pull image from client(javascript) to sever(flask) but i got error while doing that. Even i tried to set 'Content-Type': 'application/json' but when i return the 'content_type' it gave ...
Nguyễn Đức Mạnh's user avatar
0 votes
0 answers
53 views

why js only displays the second element of json?

I want to display all elements of json. but it only displays the second element. please help. A pkl file is: [('[email protected]', [[('That', 'DT'), ('request', 'NN'), ('will', 'MD'), ('present', 'VB'), (...
Dylan's user avatar
  • 1,183
0 votes
1 answer
20 views

How to pass a json encoded variable from a python function to a in an html embetted js code in flask

I have this @app.route('/sensor', methods=['GET', 'POST']) def sensor(): output ='''<!DOCTYPE html><html lang="en"><head> <meta name="viewport" content=&...
Kevin Keller's user avatar
0 votes
0 answers
36 views

I get the error "Unsupported Media Type Did not attempt to load JSON data(...)."

I am using python and flask, and I am trying to make a web application for making flashcards. However, when I try to submit my flashcards (i.e., when I fill out the fields "course", "...
Capver's user avatar
  • 1
0 votes
1 answer
37 views

Javascript request to Python Django not found

I am new to Django and Javascript. Now totally stuck with this error, probably a really small thing, but I can not figure out what can be the problem. I would like to delete a document through my form ...
Katzifant's user avatar
-2 votes
1 answer
89 views

How can I parse json from a website into python?

I am trying to scrape the news headlines from this page. It appears that the headlines are contained in a json-object named App inside a pair of script tags. If you're reading this in the future, you ...
Mikke Mus's user avatar
  • 151
0 votes
1 answer
42 views

Unable to get JavaScript to parse JSON from html file

I am coding a word search game in django, and need to check whether the entered word is in a dictionary. I am currently converting a python dictionary using json.dump, passing it as context to the ...
Caden The Yak's user avatar
0 votes
1 answer
703 views

Decrypting an AES encrypted JSON file in Python, with no IV

Trying to mod a game for personal use (Turn on mouse control, remove menu/dialogue restrictions) To mod the files I need to decrypt a JSON file. It's contents should be generic game info but instead ...
Thanos's user avatar
  • 1
0 votes
1 answer
282 views

order of python dict changes when send as a json response (python 3.11.3)

I am trying to send a python dict to my frontend so can create some html based on the values, i therefore need the order of the dict to be reliable but when i send my dict to the frontend it changes ...
Soma Juice's user avatar
1 vote
0 answers
770 views

"error": "415 Unsupported Media Type: Did not attempt to load JSON data because the request Content-Type was not 'application/json'

I keep getting this error when making a POST request to my Flask API: { "error": "415 Unsupported Media Type: Did not attempt to load JSON data because the request Content-Type was ...
Samirit Saha's user avatar

15 30 50 per page
1
2 3 4 5
68