-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PUT with headers. #17
Comments
I'm not sure if there's enough information to help troubleshoot here. What's the response that you get back? Have you tried using a POST instead? -Sean |
Its alive. :) Thank you. I did a workaroud with Tasker and REST plugin, it works. |
Hi, to add context to this issue, I monitored the logs whilst running a PUT request with headers. I get the following; [10:21:04] pkjs> HTTP Push:150 jskit_system :: PebbleEventListener : bad dispatch on event appmessage: InvalidStateError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED. Looking in at your code this is caused by calling setRequestHeader before xhr.open() has been called, which invalidates the call. HTTP-Push/src/js/pebble-js-app.js Line 100 in 087d612
Should be ran before HTTP-Push/src/js/pebble-js-app.js Lines 32 to 45 in 087d612
|
I build the commit and could successfully trigger a Post request to Home Assistant. I used the following self-built .pbw |
Hi,
On my Time with 4.4.0 the PUT with Headers does not work (spinning pipe on pebble). Is there any workaround on it?
Thx.
PUT https://public-api.nello.io/v1/locations/a71122f1-60ed-46e3-902f-da2e2603c463/open/
Headers:
Content-Type: application/json
Authorization: Bearer N4atQOdTmbtk3xftsrW3KuLBApI8Be
Content-Length: 0
The text was updated successfully, but these errors were encountered: