Open dheroying opened 3 years ago
I've the same problem, did you solve it? I've this configuration
serverless.yml
custom:
ngrokTunnel:
ngrokOptions:
- region: 'us'
- authtoken: ${env:NGROK_AUTH_TOKEN}
tunnels:
- port: 3000
plugins:
- serverless-offline
- serverless-ngrok-tunnel
- serverless-webpack
- serverless-plugin-include-dependencies
- serverless-dotenv-plugin
- serverless-sentry
command to run
serverless offline start --host 0.0.0.0 --stage dev --prefix dev --tunnel=true
console
Serverless: Offline [HTTP] listening on http://0.0.0.0:3000
Serverless: Enter "rp" to replay the last request
Serverless: Tunnels error: ngrok is not yet ready to start tunnels. Trying to reconnect in 5 seconds...
Serverless: Tunnels error: ngrok is not yet ready to start tunnels. Trying to reconnect in 5 seconds...
Serverless: Unable to create tunnel: ngrok is not yet ready to start tunnels
Serverless: Closing tunnels...
Serverless: Closing tunnels...
I get the same error. Is this project dead?
I solved my problem, creating the folder .ngrok2
in the directory C:\Users\YourUser
inside the folder .ngrok2
create the file ngrok.yml
with the ngrok token.
ngrok.yml
:
version: "2"
authtoken: yourNgrokToken
@danieldegrassi
Everything was working few weeks ago. Now I'm getting a similar error.
sls tunnel
Running "serverless" from node_modules
Starting tunnels...
Tunnels error: Cannot read properties of undefined (reading 'body'). Trying to reconnect in 5 seconds...
Tunnels error: Cannot read properties of undefined (reading 'body'). Trying to reconnect in 5 seconds...
I've followed the guide in the ReadMe file. But it shows the error and not working. I am not sure what is wrong.