Skip to content
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

[Feature Request] Support APIs with incorrect content-type #206

Open
jnv opened this issue Feb 11, 2022 · 1 comment
Open

[Feature Request] Support APIs with incorrect content-type #206

jnv opened this issue Feb 11, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@jnv
Copy link
Contributor

jnv commented Feb 11, 2022

Some APIs are just implemented incorrectly and report incorrect content-type header, typically JSON returned as text/html.

So far we ran into this in following APIs:

I'd actually like to start integrating OTASync, but this is a blocker for me. While I think this could be handled on more deeply conceptual level, perhaps we could expose JSON.parse in maps for starters?

@jnv jnv added the enhancement New feature or request label Feb 11, 2022
@jnv
Copy link
Contributor Author

jnv commented May 12, 2022

So my workaround currently for this is to use JSON.parse directly (which is available at least since OneSDK ~1.2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant