3 ms·
HTTPS results in 500 Internal Server Error. Edit: Well no, it's only some sites. E. g. https://medium.com https://medium.com
by WA 11y ago
HTTPS results in 500 Internal Server Error.
Edit: Well no, it's only some sites. E. g. https://medium.com https://medium.com
- danielsamuels 11y agoA CORS restriction perhaps?
- learned 11y agoI'm also getting 500s. Looks to be a CORS issue. I've tried about a dozen big name sites so far without any luck. Nonetheless, a great idea! Edit: Just tried it in Node and it works brilliantly. Cool project.
- diggan 11y agoIf you're running the example on the website/in a browser, it's probably CORS stopping you. Try using a backend language or just curl and it should be fine.
- WA 11y agoWell no, because my browser isn't doing the request. The underlying Node app (the Jam API) does it. I found it: The API responds with an HTTP 500 error if you use CSS selectors that don't select anything or are simply invalid. Probably makes sense to add some Exception handling right there.
- gavino 11y agoI had been trying to figure out what would be causing this issue, thanks for pointing it out, I've pushed a fix real quick that will respond whether JSON is invalid or a CSS selector wasn't found on the provided URL.
- deleted 11y ago[deleted]