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
Issue in v6.7.0 causing invocations to fail on subsequent attempts #1100
Comments
Hello, maybe it's the same issue as #1075. |
@VincentClair looks like #1075 is definitely related. However, it is closed with no real resolution. Looks like there might a breaking change in the codebase which is probably less than ideal. |
I got the same error trying to promisify redis, the first request works, the second one:
|
I'm having trouble with this issue too. For a while I'm using the version 6.5.0. With the newest version, every request makes start a new application. This causes trouble when using TypeORM, for example. |
This issue causes trouble in |
I am having the same issue. This is limited to above 6.4.0. We use offline to test our code in the deployment pipeline. const { spawn } = require('child_process') const { slsOffline, updateBearerToken, updateAccountBearerToken, updateLoginInfo, loginData } = require('./config') let slsOfflineProcess before(async () => { await startSlsOffline() async function startSlsOffline () { after(() => { function stopSlsOffline () { |
@dherault just pointed out that v6.8.0 was released today in the Gitter. I've updated dustinsgoodman/serverless-microservices-graphql-template#13 to use v6.8.0 and this issue has been resolved using the latest. Closing since the issue is now resolved. |
Bug Report
Discovered a bug in v6.7.0 that wasn't present in v6.6.0. When invoking functions, I'm seeing:
Current Behavior
When invoking functions against my service, I'm seeing the aforementioned rejection errors from the framework. When running v6.6.0 of the library, everything works as intended but v6.7.0 has this bug.
Sample Code
Here's a branch with full reproduction. Was able to get v6.6.0 working on it and once I upgraded to v6.7.0 it failed: dustinsgoodman/serverless-microservices-graphql-template#13
Expected behavior/code
I should be able to run my lambda function twice in succession without a failure.
Environment
serverless
version: v2.0.0serverless-offline
version: v6.7.0node.js
version: v12.18.2OS
: Ubuntu 16.04Possible Solution
Looks like invocationRoute.js changed to return an async function but didn't properly fix the key-value mapping on the return object and might not be handling the await downstream. See v6.7.0...master#diff-c23f5dac27510ddbb5b7b60780e7571dR12.
The text was updated successfully, but these errors were encountered: