Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API returning HTML response even when mode=json is enabled #45

Open
pencerw opened this issue Feb 6, 2020 · 2 comments
Open

API returning HTML response even when mode=json is enabled #45

pencerw opened this issue Feb 6, 2020 · 2 comments

Comments

@pencerw
Copy link

pencerw commented Feb 6, 2020

Hey Lever-

About an hour ago, I tried the following command and received a JSON response:
curl https://api.lever.co/v0/postings/originio
The response is too long to post, but here's the beginning and end:
[{"additionalPlain":"Nice to have:\nAdditive manufacturing and/or 3D printing experience\n"..."applyUrl":"https://jobs.lever.co/originio/39446629-e634-42b4-af62-39332fec714e/apply"}]

But now, even if I use the following command I receive an HTML response:
curl https://api.lever.co/v0/postings/originio&mode=json
The response is even longer but it starts with:
<!DOCTYPE html><head prefix="og: http://ogp.me/ns#"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><title>Origin</title><meta name="twitter:card" value="summary"><meta name="twitter:title" content="Origin"><meta...

...Am I doing something wrong? I have the same results with Python Requests.

@Datamined
Copy link

Approve, that sometimes this is happenning. I also receive 400 Error and 'text/html' response header with long HTML in the body.

@sammydigits
Copy link

Hi Lever, any progress on fixing this, or any workarounds? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants