Skip to content

Container Time Sync Issue. #163

@jrbracey

Description

@jrbracey

Describe the bug
Built the docker image and am running locally. All functionality worked as expected.

My computer went to sleep and now I get the following error in the logs:

`2025-07-14 20:14:19,744 [ERROR] Bedrock invocation failed for model anthropic.claude-3-sonnet-20240229-v1:0: An error occurred (InvalidSignatureException) when calling the ConverseStream operation: Signature expired: 20250714T201419Z is now earlier than 20250714T202350Z (20250714T202850Z - 5 min.)

2025-07-14 20:14:19,744 [ERROR] Stream error for model anthropic.claude-3-sonnet-20240229-v1:0: 500: An error occurred (InvalidSignatureException) when calling the ConverseStream operation: Signature expired: 20250714T201419Z is now earlier than 20250714T202350Z (20250714T202850Z - 5 min.)

2025-07-14 20:14:19,744 [ERROR] Stream error: 500: An error occurred (InvalidSignatureException) when calling the ConverseStream operation: Signature expired: 20250714T201419Z is now earlier than 20250714T202350Z (20250714T202850Z - 5 min.)

2025-07-14 20:14:19,776 [ERROR] Bedrock invocation failed for model anthropic.claude-3-sonnet-20240229-v1:0: An error occurred (InvalidSignatureException) when calling the Converse operation: Signature expired: 20250714T201419Z is now earlier than 20250714T202350Z (20250714T202850Z - 5 min.)

INFO: 192.168.127.1:33040 - "POST /api/v1/chat/completions HTTP/1.1" 500 Internal Server Error

2025-07-14 20:14:19,852 [ERROR] Bedrock invocation failed for model anthropic.claude-3-sonnet-20240229-v1:0: An error occurred (InvalidSignatureException) when calling the Converse operation: Signature expired: 20250714T201419Z is now earlier than 20250714T202350Z (20250714T202850Z - 5 min.)

INFO: 192.168.127.1:58723 - "POST /api/v1/chat/completions HTTP/1.1" 500 Internal Server Error

2025-07-14 20:14:19,887 [ERROR] Bedrock invocation failed for model anthropic.claude-3-sonnet-20240229-v1:0: An error occurred (InvalidSignatureException) when calling the Converse operation: Signature expired: 20250714T201419Z is now earlier than 20250714T202350Z (20250714T202850Z - 5 min.)

INFO: 192.168.127.1:24710 - "POST /api/v1/chat/completions HTTP/1.1" 500 Internal Server Error

2025-07-14 20:15:15,031 [ERROR] Unable to list models: An error occurred (InvalidSignatureException) when calling the ListInferenceProfiles operation: Signature expired: 20250714T201515Z is now earlier than 20250714T202446Z (20250714T202946Z - 5 min.)

INFO: 192.168.127.1:19415 - "GET /api/v1/models HTTP/1.1" 200 OK`

Please complete the following information:

  • Which API you used: [e.g. /chat/completions] - see above
  • Which model you used: [e.g. anthropic.claude-3-sonnet-20240229-v1:0] - see above

To Reproduce
Build and launch the docker container locally.
Put your computer to sleep for > 5 min
Attempt any request that will hit an AWS endpoint.

Expected behavior
I believe the issue is in api/models/bedrock.py line 67. I don't think the client is getting re-initialized upon container restart.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions