bunq / sdk_php

PHP SDK for bunq API
MIT License
84 stars 54 forks source link

"HTTP Response Code: 400 The request signature is invalid." #87

Closed sanneterpstra closed 6 years ago

sanneterpstra commented 6 years ago

I'm trying to integrate the Bunq API in my Laravel project. The installation is flawless, however when I try to create a request I get an error "HTTP Response Code: 400. The request signature is invalid."

Has this something to do with the fact that I'm using Laravel Valet on my computer?

Steps to reproduce:

  1. Install SDK into laravel project

What should happen:

  1. Create apiContext and get users

What happens:

  1. apiContext gets created but the request fails with the following error: HTTP Response Code: 400. The request signature is invalid.
OGKevin commented 6 years ago

Hey @sanneterpstra,

Thanks for reporting this issue!

What version of the SDK are you using, is it 0.12.4?

If so i might also be related to: bunq/sdk_php#75

Could you see if this issue persists on 0.12.3

sanneterpstra commented 6 years ago

Hi @OGKevin

Yes I was using 0.12.4, it still persists in 0.12.3. Here is a little screenshot

I'm using the newest version of Laravel Valet.

OGKevin commented 6 years ago

@sanneterpstra Hmmm I have a project running on Laravel Valet 2.0.5 and a request to user works as intended. So I think we're hitting a weird corner case here :sweat_smile:

Could you reproduce this error on the sandbox and send me the value of the X-Bunq-Server-Response-Id header. You can var dump the raw response of the request to the user endpoint.

sanneterpstra commented 6 years ago

@OGKevin I solved the problem. An older version (5.4) of Laravel caused the error. Updating to Laravel 5.5 solved it. Thanks for your quick replies!