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

When the Spryng credentials in gateway are wrong, an uncaught exception is thrown #413

Open
phavekes opened this issue Nov 30, 2024 · 0 comments
Labels

Comments

@phavekes
Copy link
Member

This issue is imported from pivotal - Originaly created at May 27, 2024 by Paul Rijke

Whe the credentials aren;t okay for the Spryng gateway, the SmsController fails with an:

{"channel":"request","level":"CRITICAL","message":"Uncaught PHP Exception ErrorException: \"Warning: Illegal string offset \'description\'\" at /var/www/html/src/Surfnet/StepupGateway/ApiBundle/Controller/SmsController.php line 51","context":{"exception":{"class":"ErrorException","message":"Warning: Illegal string offset \'description\'","code":0,"file":"/var/www/html/src/Surfnet/StepupGateway/ApiBundle/Controller/SmsController.php:51"}},"extra":{"art":"37995","server":"gateway.dev.openconext.local","application":"stepup-gateway","request_id":"706ed6fb0d4e2c89baf7ace43572bcf6"}}

debugging of the result gave this result dump

^ Surfnet\StepupGateway\ApiBundle\Sms\SpryngMessageResult {#623 ▼
  -message: Spryng\SpryngRestApi\Http\Response {#621 ▼
    #curlInstance: curl resource @20 ▶}
    #rawResponse: """
      HTTP/2 401 
      date: Mon, 27 May 2024 13:45:36 GMT
      content-type: application/json
      server: Apache
      cache-control: no-cache, private
      access-control-allow-origin: *
      access-control-expose-headers: *
      strict-transport-security: max-age=31536000;
      x-frame-options: DENY
      x-content-type-options: nosniff
      x-xss-protection: 1; mode=block
      referrer-policy: no-referrer
      vary: Authorization
      x-robots-tag: none
      
      {"error":"Unauthenticated."}
      """
    #rawBody: "{"error":"Unauthenticated."}"
    #responseCode: 401
  }
@phavekes phavekes assigned phavekes and unassigned phavekes Nov 30, 2024
@phavekes phavekes transferred this issue from OpenConext/Stepup-Project Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: New
Development

No branches or pull requests

1 participant