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

Preprod API is broken #685

Closed
4 of 5 tasks
carlgieringer opened this issue Jul 27, 2024 · 2 comments
Closed
4 of 5 tasks

Preprod API is broken #685

carlgieringer opened this issue Jul 27, 2024 · 2 comments
Assignees
Labels
bug Broken releasd functionality

Comments

@carlgieringer
Copy link
Contributor

carlgieringer commented Jul 27, 2024

TODO

Original issues:

Browser sees all 502s.

In CloudWatch I see:

2024-07-27T05:29:50.848Z	403228b5-1db2-4320-9f29-353019b5dcad	ERROR	Invoke Error 	
{
    "errorType": "TypeError",
    "errorMessage": "Converting circular structure to JSON\n    --> starting at object with constructor 'IncomingMessage'\n    |     property 'req' -> object with constructor 'ClientRequest'\n    --- property 'res' closes the circle",
    "stack": [
        "TypeError: Converting circular structure to JSON",
        "    --> starting at object with constructor 'IncomingMessage'",
        "    |     property 'req' -> object with constructor 'ClientRequest'",
        "    --- property 'res' closes the circle",
        "    at JSON.stringify (<anonymous>)",
        "    at AwsLogger3.makeJsonLogArguments [as makeLogArguments] (/howdju-service-common/lib/logging/AwsLogger.js:94:30)",
        "    at AwsLogger3.<anonymous> (/howdju-service-common/lib/logging/AwsLogger.js:105:26)",
        "    at routeRequest (/var/src/router.ts:208:26)"
    ]
}
@carlgieringer carlgieringer added the bug Broken releasd functionality label Jul 27, 2024
@carlgieringer carlgieringer self-assigned this Jul 27, 2024
@carlgieringer
Copy link
Contributor Author

I think there is an underlying error, but when we log it we get another error due to not handling circularity. (See here.)

@carlgieringer
Copy link
Contributor Author

After fixing the logging error, I can see:

"message": "User: arn:aws:sts::007899441171:assumed-role/premiserLambdaRole/premiserApi is not authorized to perform: ssm:GetParameters on resource: arn:aws:ssm:us-east-1:007899441171:parameter/pre_prod/scraping-ant-api-key because no identity-based policy allows the ssm:GetParameters action",
Screenshot 2024-07-27 at 11 52 48 AM

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

No branches or pull requests

1 participant