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.

Error in Class: AWS.ApiGatewayV2 getApi operation

See original GitHub issue

Installed the latest aws-sdk in Lambda Node.js 8.10. Below error happened when calling getApi operation. *Replaced real value with <account-id>:<api-id> in the error

{
    "message": "Invalid API identifier specified <account-id>:<api-id>",
    "code": "NotFoundException",
    "time": "2018-12-26T02:44:43.813Z",
    "requestId": "331aa750-08b8-11e9-83ca-6b713e08a649",
    "statusCode": 404,
    "retryable": false,
    "retryDelay": 20.59791196733176
}

ApiId is properly set in string form.

var params = {
  ApiId: 'STRING_VALUE' /* required */
};
apigatewayv2.getApi(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
srchasecommented, Dec 27, 2018

V2 is for creating and deploying WebSocket APIs.

You should use V1 for interacting with the PetStore API.

0reactions
lock[bot]commented, Sep 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Class: AWS.ApiGatewayV2 — AWS SDK for JavaScript
Amazon API Gateway V2 ... This object has one method for each API operation. Examples: ... The function is only called for retryable...
Read more >
Class: Aws::ApiGatewayV2::Client — AWS SDK for Ruby V3
Any object that responds to #resolve_endpoint(parameters) where parameters is a Struct similar to Aws::ApiGatewayV2::EndpointParameters.
Read more >
Handle Lambda errors in API Gateway - AWS Documentation
API Gateway handles these errors by mapping the Lambda error to an HTTP error ... the AWS CLI, call the update-integration-response operation to...
Read more >
Api - Amazon API Gateway
Operation ID: GetApi​​ The resource specified in the request was not found. The client is sending more than the allowed number of requests...
Read more >
aws-cdk/aws-apigatewayv2 module - AWS Documentation
›@aws-cdk/aws-apigatewayv2 ... AWS::APIGatewayv2 Construct Library ... For example, the method below refers to the client side errors metric for this API.
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