Comments (6)
Yes, I added user agent header: "pyelectroluxocp/VERSION"
from py-electrolux-ocp.
Hey, it's probably responding with some error status code.
Can you try updating the library, I recently updated it to throw on status code error from Gigya.
I found out reading their documentation that there is a header you pass in to either always return status 200 or allow "normal error" status codes too.
I noticed you are using copied older version that always expects success.
If you update we might get some more details on what is happening
from py-electrolux-ocp.
Although it looks like it can't parse Json, either response body is not valid Json or is empty, so I'm not sure if it'll help. I'll try some different requests, what the response could be in few hours on my side
from py-electrolux-ocp.
Hi,
The response is empty in this case from the logs :
"File "/usr/local/lib/python3.12/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None"
from py-electrolux-ocp.
Looks like I had GET and POST requests mixed up for get_ids()
gigya request, not sure why it even worked sometimes.
Fixed that. Also added a bunch more error logging. If request fails to parse JSON. will output what ever it received as text()
, and a bunch more stuff, should be easier to spot the problem.
Released version: 0.0.12
from py-electrolux-ocp.
Ok thank you. You also changed the user agent to make the request always pass ?
I will then switch back to an external dependency instead of wrapping it
from py-electrolux-ocp.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-electrolux-ocp.