You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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&output=js&name=&postcode=LE1%201AA">here</a>.</p>
</body></html>```
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: