question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code: InternalServerError, Message: Unknown request

See original GitHub issue

Description

I’m getting {"headers":{},"multiValueHeaders":{},"statusCode":500,"body":"{\"Code\":\"InternalServerError\",\"Message\":\"Unknown request.\"}

Steps to reproduce

sam local invoke --no-event --debug

Observed result

Sending Telemetry: {‘metrics’: [{‘commandRun’: {‘awsProfileProvided’: False, ‘debugFlagProvided’: True, ‘region’: ‘’, ‘commandName’: ‘sam local invoke’, ‘duration’: 4697, ‘exitReason’: ‘success’, ‘exitCode’: 0, ‘requestId’: ‘ebbeca29-14f4-4ba8-bd95-aeb8c4e12b94’, ‘installationId’: ‘072d408a-950f-4a21-bb6b-cea85e65da65’, ‘sessionId’: ‘51fac846-dedc-4387-9225-efaf1a4890 e2’, ‘executionEnvironment’: ‘CLI’, ‘pyversion’: ‘3.7.6’, ‘samcliVersion’: ‘0.41.0’}}]} HTTPSConnectionPool(host=‘aws-serverless-tools-telemetry.us-west-2.amazonaws.com’, port=443): Read timed out. (read timeout=0.1)

{“headers”:{},“multiValueHeaders”:{},“statusCode”:500,“body”:“{"Code":"InternalServerError","Message":"Unknown request."}”}

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Windows 10
  2. sam --version: 0.41.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sriram-mvcommented, Feb 12, 2020

Ah I see.

Your understanding is right.

When a project gets built using sam build, all other commands that need to deal with built artifacts start referencing to .aws-sam/build/template.yaml unless a --template-file option is specified.

When local start api command gets a --template-file option specified it is expecting to find a template where the codeuri contains built artifacts. If the supplied template file does not fulfill those characteristics, it errors out.

0reactions
plantusdcommented, Feb 13, 2020

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code: InternalServerError, Message: Unknown request #1791
Description. I'm getting {"headers":{},"multiValueHeaders":{},"statusCode":500,"body":"{\"Code\":\"InternalServerError\",\"Message\":\"Unknown ...
Read more >
awslabs/chalice - Gitter
I'm moving the bot to AWS API Gateway -> Lambda using Chalice, but the Request class's event_dict header does not include "X-Slack-Signature". Everything...
Read more >
API gateway not invoking a chalice endpoint - Stack Overflow
url: https://lw751abcd.execute-api.us-east-1.amazonaws.com/test {"Code":"InternalServerError","Message":"Unknown request."} What am I missing ...
Read more >
9999","message":"Unknown internal server error."
Good afternoon,. tl;dr: we're trying to initiate a call using the graph api which results in. '{"error":{"code":"9999","message":"Unknown internal server ...
Read more >
500 Internal Server Error - HTTP - MDN Web Docs - Mozilla
This error response is a generic "catch-all" response. Usually, this indicates the server cannot find a better 5xx error code to response.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found