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

Failure when executing getConstituency. #2

Open
singloon opened this issue Apr 30, 2017 · 1 comment
Open

Failure when executing getConstituency. #2

singloon opened this issue Apr 30, 2017 · 1 comment
Labels

Comments

@singloon
Copy link

When using the getConstituency.
client.getConstituency('', postcode);

In the code it's using the correct url as a param:
http://www.theyworkforyou.com/api/getConstituency?key=apikey&output=js&name=&postcode=LE1%201AA

If I curl the above url it works, it works.

It returns a 301 and fails as it tries to parse it as JSON.

<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://www.theyworkforyou.com/api/getConstituency?key=apikey&amp;output=js&amp;name=&amp;postcode=LE1%201AA">here</a>.</p>
</body></html>```
@ifraixedes ifraixedes added the bug label May 1, 2017
@ifraixedes
Copy link
Owner

Long time ago was when I worked on this project.
I will try to find time to take a look, but I cannot promise anything for now.

Thanks for reporting it.

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

No branches or pull requests

2 participants