Code Monkey home page Code Monkey logo

Comments (6)

Woyken avatar Woyken commented on August 23, 2024 1

Yes, I added user agent header: "pyelectroluxocp/VERSION"

from py-electrolux-ocp.

Woyken avatar Woyken commented on August 23, 2024

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.

Woyken avatar Woyken commented on August 23, 2024

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.

albaintor avatar albaintor commented on August 23, 2024

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.

Woyken avatar Woyken commented on August 23, 2024

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.

albaintor avatar albaintor commented on August 23, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.