Skip to content

localhost:7676 connection refused using tutorial template #4

@JaviSoto

Description

@JaviSoto

Hi! Congrats for shipping :) really excited about this.

I followed the tutorial in https://swift.cloud/blog/deploy-server-side-swift-applications-on-vercel, and I can't figure out what I may be doing wrong. I created a project that is essentially the same as https://github.com/swift-cloud/vercel-starter-kit. When I run swift package --disable-sandbox vercel dev I see the following output, seemingly showing everything's OK:

-------------------------------------------------------------------------
Starting dev server: http://localhost:7676
-------------------------------------------------------------------------


/Applications/Xcode-14.2.0-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift run --package-path /Users/javi/Documents/Projects/Personal/Website

  [0/1] Planning build
  Building for debugging...
  Build complete! (1.08s)
  2023-01-29T11:58:12-0800 info LocalLambdaServer : [AWSLambdaRuntimeCore] LocalLambdaServer started and listening on 127.0.0.1:7000, receiving events on /invoke
  2023-01-29T11:58:12-0800 info Lambda : [AWSLambdaRuntimeCore] lambda runtime starting with LambdaConfiguration
  General(logLevel: info))
  Lifecycle(id: 190925014293333, maxTimes: 0, stopSignal: TERM)
  RuntimeEngine(ip: 127.0.0.1, port: 7000, requestTimeout: nil

However, opening http://localhost:7676 on a browser doesn't load (ERR_CONNECTION_REFUSED in Chrome).

Looking at the sources I can't figure out what it may be. I thought maybe it was because I didn't have node installed (although I'm surprised I didn't see an error about it?). But after installing it, i see the same output when invoking the plugin and the same result.

Is there anything else I can to do debug this? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions