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

Investigate SQUIZ "Code: 500 Message: Internal Server Error" #44

Open
erroneous0ne opened this issue Sep 24, 2024 · 0 comments
Open

Investigate SQUIZ "Code: 500 Message: Internal Server Error" #44

erroneous0ne opened this issue Sep 24, 2024 · 0 comments
Labels
bug Something isn't working squiz client

Comments

@erroneous0ne
Copy link

erroneous0ne commented Sep 24, 2024

Investigation

Useful Links

  • Link to the SQUIZ ticket.
  • Link to the Slack conversation.

Description

SQUIZ reported Code: 500 Message: Internal Server Error Body: {"message":"Error processing the request"} in the REST API v2 component. Link to the testing flow.

The SQUIZ team found that Connect sends an empty(blank) body with the GET request which causes the issue.

Please see the logs:

[2024-09-24 11:12:06.883]: processMessage received
[2024-09-24 11:12:06.884]: Going to check if incoming message body is lightweight.
[2024-09-24 11:12:06.884]: No object id header so not lightweight.
[2024-09-24 11:12:06.885]: No object id header so not lightweight.
[2024-09-24 11:12:06.885]: Going to check if passthrough for step is lightweight. { stepId: 'step_1' }
[2024-09-24 11:12:06.889]: Checking rate limit parameters...
[2024-09-24 11:12:06.889]: Going to fetch secret
[2024-09-24 11:12:06.968]: Got secret
[2024-09-24 11:12:06.969]: Got request body
[2024-09-24 11:12:07.626]: Component error
[2024-09-24 11:12:07.626]: Response statusCode 500
[2024-09-24 11:12:07.627]: processMessage emit error
[2024-09-24 11:12:07.635]: Delay Between Calls is not set, process message without delay...
[2024-09-24 11:12:07.636]: processMessage emit end was called more than once
[2024-09-24 11:12:07.636]: processMessage emit end

Postman or Curl command works, see the GET endpoint and API key:

curl --location 'https://dxp.squiz.cloud/__dxp/au/file-storage/saw-2943/api/v2/file?source=/Integrations/DEV/Temp/' \
--header 'x-api-key: xxx'

Component Version

2.0.15

Actual Result

HTTP error: Code: 500 Message: Internal Server Error Body: {"message":"Error processing the request"}
    at checkErrors (/home/node/lib/utils.js:436:19)
    at async module.exports.processMethod (/home/node/lib/utils.js:175:14)

Expected Result

200 OK

Workaround(s)

Use the Code component.

@erroneous0ne erroneous0ne added bug Something isn't working squiz client labels Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working squiz client
Projects
None yet
Development

No branches or pull requests

1 participant