question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect parsing of content type application/hal+json

See original GitHub issue

Hi, we switched to superagent version 1.6.1

we have backend-response content-type: "application/hal+json" according to some previous issues the parser should be updated to support +json types but the npm ships superagent without the right parser.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
craigrichcommented, Dec 1, 2016

This worked for me (FF-47)

superagent.get(url)
  .set('Accept', 'application/hal+json')
  .then(response => …)
0reactions
kornelskicommented, Dec 1, 2016

This has been fixed around version 1.8

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incorrect parsing of content type application/hal+json #816
Hi, we switched to superagent version 1.6.1 we have backend-response content-type: "application/hal+json" according to some previous issues ...
Read more >
Incorrect parsing of content type application/hal+json
Hi, we switched to superagent version 1.6.1. we have backend-response content-type: "application/hal+json" according to some previous issues ...
Read more >
The application/problem+json Content-Type - SymfonyCasts
So the json part tells us how to parse the document. The problem part give us a hint on how to find out...
Read more >
java - Cannot do HAL+JSON Level 3 RESTful API with Spring ...
This is the reason, why the media type is called application/hal+json . It basically says it's the HAL style/semantics in the JSON format....
Read more >
Response does not have a content-type header
On the request side, I've never seen a Content-Type that is a comma separated list. Is that legal? Do you mean for "application/json...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found