serverless-webpack icon indicating copy to clipboard operation
serverless-webpack copied to clipboard

Successful serverless offline lambda function behaves differently when deployed using serverless-webpack

Open lokimckay opened this issue 7 years ago • 1 comments

This is a Bug Report

Description

Full disclosure: I have already raised a ticket in another related repository here. I raised this ticket because I am not sure if the issue I am having is related to serverless-webpack or apollo-datasource-rest. Any guidance is much appreciated :)

To reproduce please follow readme in this repo

For bug reports:

  • What went wrong? I get the following error once I have deployed to Lambda, but there is no issue when using serverless offline. TypeError: Right-hand side of 'instanceof' is not an object
  • What did you expect should have happened? I should be able to call the deployed Lambda endpoint and receive a successful response with no errors
  • What was the config you used? See repro repo https://github.com/sneyed/apollo-datasource-rest-issue
  • What stacktrace or error message from your provider did you see? See https://github.com/sneyed/apollo-datasource-rest-issue/blob/master/FULLERROR.json

For feature proposals:

  • What is the use case that should be solved. The more detail you describe this in the easier it is to understand for us.
  • If there is additional config how would it look

Similar or dependent issue(s):

Additional Data

lokimckay avatar Oct 17 '18 07:10 lokimckay

Hi @sneyed, it does indeed look like the issue is with apollo-datasource-rest, can you confirm?

hassankhan avatar Apr 26 '19 20:04 hassankhan

Yes related to apollo-datasource-rest

lokimckay avatar Mar 08 '23 04:03 lokimckay