Http://beta.openstates now http://openstates. Please update documentation


#1

Hi James,

The documentation for the graphQL endpoint (this page) needs to be updated from http://beta.openstates.org/graphql to http://openstates.org/graphql

The location of the url is the 2nd line of the the Basics section in the Open States v2 GraphQL API documentation.

I was using the beta.openstates endpoint in a fully working app update on Jan 6. Just noticed it’s broken now. Interestingly, the error being sent back now in the JSON object is “Must provide query string.” Anyway, my app is now happy again :slight_smile:

Have a great day!


#2

Thanks for pointing this out, the documentation wasn’t automatically building, I’ve run a build & I’m looking into this now


#3

Hi @mike , I am also getting the same error

{“errors”:[{“message”:“Must provide query string.”}]}

Now is I need to move back to v1 or there is any fix for this issue


#4

Hi @mfarhanahmad For me, I had been using https://beta.openstates.org/graphql 2 for my calls. I changed that to the newly updated https://openstates.org/graphql and it worked as expected.

If that doesn’t do it, then you likely have a syntax issue in your query string. Good luck!!


#5

@mfarhanahmad What you’re seeing is a problem on your end. Without any information about what you’re trying to use, little useful guidance is possible. If you are trying to use curl or similar, you may find my post useful:

@Mike I recommend using https, not http. The http URL just redirects to https, as you can easily see in the browser. People who are using the API directly (not using a browser) may run into difficulty if they don’t handle the redirect properly.


#6

Hey there, @EdStaub!

I am, indeed, using https://… base URLs. Just a typo in my post there. I’ll go back and update them now. Thanks for the heads up!


#7

This topic was automatically closed 70 days after the last reply. New replies are no longer allowed.