Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings

fix: convert port to number type - #185

#185
Open
hiramatsutaku wants to merge 1 commit into
serverless-appsync:betaserverless-appsync/serverless-appsync-simulator:betafrom
hiramatsutaku:fix-port-increment-bug-on-multiple-apishiramatsutaku/serverless-appsync-simulator:fix-port-increment-bug-on-multiple-apisCopy head branch name to clipboard
Open

fix: convert port to number type#185
hiramatsutaku wants to merge 1 commit into
serverless-appsync:betaserverless-appsync/serverless-appsync-simulator:betafrom
hiramatsutaku:fix-port-increment-bug-on-multiple-apishiramatsutaku/serverless-appsync-simulator:fix-port-increment-bug-on-multiple-apisCopy head branch name to clipboard

Conversation

@hiramatsutaku

@hiramatsutaku hiramatsutaku commented Apr 24, 2023

Copy link
Copy Markdown

When using multiple APIs, port is incremented.(See: #92)
However, when I specified port from the environment variable, it became a string and could not be incremented, resulting in the following error.

❯ APPSYNC_PORT=20004 npx sls offline start
AppSync Simulator: Error: Port 2000410 is already in use. Please kill the program using this port and restart Mock
...

So, I fixed this even if port/wsPort is specified from an environment variable.

- If port is specified from the environment variable, it may be string type
@plezan
plezan changed the base branch from master to beta January 24, 2024 08:35
@plezan plezan self-assigned this Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.