Skip to content

JSON shield giving invalid result #6852

Answered by chris48s
DavidStirling asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like forum.image.sc

a) bans certain user agents.
b) returns a plan text response instead of JSON if it doesn't like your user agent

$ curl "https://forum.image.sc/tag/cellprofiler.json" -A "Shields.io/2003a"
Crawler is not allowed!

$ curl "https://forum.image.sc/tag/cellprofiler.json"
Crawler is not allowed!

$ curl "https://forum.image.sc/tag/cellprofiler.json" -A "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"
{..snip - valid json..}

You'll have to take it up with the admins of forum.image.sc to see if you can get our UA unbanned in order to carry on using their API.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DavidStirling
Comment options

Answer selected by DavidStirling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants