tekkamanendless / iaqualink

Go package for talking with iAquaLink pool robots, including Polaris robots.
MIT License
7 stars 2 forks source link

{"status":"500","error":{"error_code":"error_internal_server_error","message":"Device offline.","details":"An internal server error has occurred."}}% #6

Closed johntdyer closed 2 years ago

johntdyer commented 2 years ago

Hello,

Thanks for doing the heavy lifting on this one, its super cool and I am super excited to get this working !!! So I used http2curl to get the curl you're using in an effort to further debug my problem... TLDR this query fails


> curl -X 'POST' -H 'Accept: application/json' 'https://p-api.iaqualink.net/devices/34XXX/execute_read_command.json?api_key=XXXXXXXXX&authentication_token=XXXXXXXXXX&command=%2Fcommand&params=request%3D0A1240%26timeout%3D800&user_id=444XXX
{"status":"500","error":{"error_code":"error_internal_server_error","message":"Device offline.","details":"An internal server error has occurred."}}%

but the device is definitely online

image

Any thoughts as to what might be going on ?

tekkamanendless commented 2 years ago

Can you send me the model of your robot? It looks like iAquaLink supports a variety of different protocols, and I'm currently working with someone whose robot uses a Web Sockets API instead of the REST API that mine does. Yours might fall under that category for when we get support for that included.

On Fri, Sep 23, 2022 at 1:51 PM John Dyer @.***> wrote:

Hello,

Thanks for doing the heavy lifting on this one, its super cool and I am super excited to get this working !!! So I used http2curl to get the curl you're using in an effort to further debug my problem... TLDR this query fails

curl -X 'POST' -H 'Accept: application/json' 'https://p-api.iaqualink.net/devices/34XXX/execute_read_command.json?api_key=XXXXXXXXX&authentication_token=XXXXXXXXXX&command=%2Fcommand&params=request%3D0A1240%26timeout%3D800&user_id=444XXX {"status":"500","error":{"error_code":"error_internal_server_error","message":"Device offline.","details":"An internal server error has occurred."}}%

but the device is definitely online

[image: image] https://user-images.githubusercontent.com/58234/192027571-1a8caf96-4599-43f6-84a0-fbc83abdb701.png

Any thoughts as to what might be going on ?

— Reply to this email directly, view it on GitHub https://github.com/tekkamanendless/iaqualink/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA752TISV7E6ZIDGYO4JYLLV7XU2DANCNFSM6AAAAAAQUF4RX4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

johntdyer commented 2 years ago

Figured out that the ID is not the "device_id" the the response from ./iaqualink devices but is actually the serial number... figured this out w/ MITMProxy on my phone :)

johntdyer commented 2 years ago

Thanks again for making this project, super cool ! If I can help w/ testing or anything please let me know :)