VolleyError UnsupportedOperationException #5220
Replies: 1 comment
-
Posted at 2022-08-28 by m-p{3} See http://forum.espruino.com/conversations/379050/ Posted at 2022-09-11 by user148386 I just found a commit of @gfwilliams which adds the functionality of headers and post requests gfwilliams/Gadgetbridge@4cd53fa . So it looks like it will be possible in the future, when the new release is published. Posted at 2022-09-17 by user148386 I tried the new version (0.70.01) and i get still the UnsupportedOperationException if i try to add an Authorization Header. Posted at 2022-09-21 by @gfwilliams Hmm, that's an odd one. But does it work for other header types? Posted at 2022-09-24 by user148386 I tried it with the headers "Authorization", "authorization" and "test" and i got always the UnsupportedOperationException.
Posted at 2022-09-24 by user148386 @ReiScarlett do you have still the issue or is it just me? Posted at 2022-09-24 by ReiScarlett It worked for me with other headers. Posted at 2022-09-24 by user148386 Hm interesting, which header do you use? Posted at 2022-09-24 by ReiScarlett To test it out i simply spelled the authorization header differently. The webapp didn't take it of course, but it sent out. Posted at 2022-09-26 by @gfwilliams Ok, thanks. I think I just fixed this with https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2908 - at least your code above runs fine now When it's merged you can try a 'nightly' Gadgetbridge build with it in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-08-26 by ReiScarlett
Hello, I've been trying to implement a simple app to access some data behind authorization and update it.
I managed to get a simple HTTP request to work, but as soon as i add the Authorization header, I only get an UnsupportedOperationException back from GadgedBridge.
Maybe this is a bug in the app?
I attached my code with the url and token substituted:
P.S. I noticed in the code for the app that there's no case to handle a PATCH http request. That might still be missing as well.
Beta Was this translation helpful? Give feedback.
All reactions