Communauté
Erreur 500 sur l'api en sandbox
last month by Vincent CLERC
Bonjour, j'essaye d'utiliser l'API en sandbox mais peut importe la requete que je fais je recois un 500.
Dans un premier temps je récupère le token, jusque la tout va bien.
$provider = new GenericProvider([
'clientId' => $client_id,
'clientSecret' => $client_secret,
'urlAccessToken' => $this->baseUrl.'/oauth2/token',
'urlAuthorize' => $this->baseUrl.'/authorize',
'urlResourceOwnerDetails' => ''
]);
J'ai bien mon token et je peux l'ajouter pour mes prochaines requêtes.
Mais j'obtiens par la suite cette erreur
< HTTP/1.1 500 Internal Server Error
< Date: Thu, 22 Jan 2026 09:31:29 GMT
< Content-Type: text/html
< Transfer-Encoding: chunked
< Connection: keep-alive
< cache-control: no-cache
< set-cookie: [mon cookie]; HttpOnly; Secure; Path=/; Domain=helloasso-sandbox.com; Expires=[date]
< cf-cache-status: DYNAMIC
< Strict-Transport-Security: max-age=0; includeSubDomains; preload
< X-Content-Type-Options: nosniff
< Server: cloudflare
< CF-RAY: [id]
