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

Incorrect API key or IP address. Error after reregistering new device/installation #12

Closed
dstollie opened this issue Mar 13, 2017 · 3 comments

Comments

@dstollie
Copy link

I wanted to proceed with my little app but im stuck with the following error

Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST https://sandbox.public.api.bunq.com/v1/device-server` resulted in a `400 Bad Request` response: {"Error":[{"error_description":"User credentials are incorrect. Incorrect API key or IP address.","error_description_tra (truncated...) in /vagrant/bunq-insights/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 111

Before rerunning the code, including the registerInstallationAndDeviceServer() method. I regenerated a public and private key pair. The bunq documentation says that the device and installation are ip-address bound but I'm getting the idea that once you've registered an installation/device to an api key you can no longer use this api key on a different ip-address.

Could you help me getting some more understanding of this issue

@dennisdegreef
Copy link
Contributor

dennisdegreef commented Mar 13, 2017

Hmm, I haven't seen this behaviour myself as far as I can remember. Have you tried asking this on the bunq Together platform? I think people from bunq may be better help on explaining these issues.
Would love to add it to the documentation when these constraints are clear.
Which environment are you using?

@dennisdegreef
Copy link
Contributor

Hi @dstollie

Do you still encounter this issue? :)

@holtkamp
Copy link
Contributor

holtkamp commented Jun 26, 2017

@dstollie a mistake I made when moving from sandbox to production, is not changing the Environment from Sandbox to Production. This way the client keeps communicating with the sandbox at https://sandbox.public.api.bunq.com, which does not 'know' the production API-key, resulting in the same error message.

😩

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

No branches or pull requests

3 participants