{"action":"opened","issue":{"url":"https://api.github.com/repos/dstndstn/astrometry.net/issues/131","repository_url":"https://api.github.com/repos/dstndstn/astrometry.net","labels_url":"https://api.github.com/repos/dstndstn/astrometry.net/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/dstndstn/astrometry.net/issues/131/comments","events_url":"https://api.github.com/repos/dstndstn/astrometry.net/issues/131/events","html_url":"https://github.com/dstndstn/astrometry.net/issues/131","id":340387110,"node_id":"MDU6SXNzdWUzNDAzODcxMTA=","number":131,"title":"Cannot post JSON request to astrometry.net API","user":{"login":"PawelPleskaczynski","id":18142313,"node_id":"MDQ6VXNlcjE4MTQyMzEz","avatar_url":"https://avatars1.githubusercontent.com/u/18142313?v=4","gravatar_id":"","url":"https://api.github.com/users/PawelPleskaczynski","html_url":"https://github.com/PawelPleskaczynski","followers_url":"https://api.github.com/users/PawelPleskaczynski/followers","following_url":"https://api.github.com/users/PawelPleskaczynski/following{/other_user}","gists_url":"https://api.github.com/users/PawelPleskaczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/PawelPleskaczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PawelPleskaczynski/subscriptions","organizations_url":"https://api.github.com/users/PawelPleskaczynski/orgs","repos_url":"https://api.github.com/users/PawelPleskaczynski/repos","events_url":"https://api.github.com/users/PawelPleskaczynski/events{/privacy}","received_events_url":"https://api.github.com/users/PawelPleskaczynski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-11T20:06:50Z","updated_at":"2018-07-11T20:06:50Z","closed_at":null,"author_association":"NONE","body":"Hello, I'm making a React app that uses astrometry.net API, and I can't post any JSON request. My code looks like this:\r\n```\r\nfetch(\"https://cors-anywhere.herokuapp.com/http://nova.astrometry.net/api/login\", {\r\n    method: 'POST',\r\n    headers: {\r\n      'Accept': 'application/json',\r\n      'Content-Type': 'application/json',\r\n    },\r\n    body: JSON.stringify({\r\n      apikey: key\r\n    }),\r\n  })\r\n  .then(function(res) {\r\n    return res.json();\r\n  })\r\n  .then(function(data) {\r\n    console.log(data)\r\n  });\r\n```\r\nand I'm getting this response in console: `{status: \"error\", errormessage: \"no json\"}`. I don't know what am I doing wrong, is there any way to make it work? Thanks"}}
{"actor":{"display_login":"PawelPleskaczynski"}}