Meteor Http Client Api Call Gzip Uncompress Resultant Json Not Working
I don't know if it's the exact issue, but from what I can understand it is. I am making an external API call with the HTTP.call and trying to parse the response as JSON (which it i
Solution 1:
So I've figured out the solution to this was not in the Meteor app itself, it was in the content being returned. The response is UTF-16LE so I had to remove special characters from the response to I could JSONify it.
result = result.content.replace(/[^A-Za-z0-9{}@&:\-_() /\\"=[\],.?!]/g, '')
Post a Comment for "Meteor Http Client Api Call Gzip Uncompress Resultant Json Not Working"