Comments (10)
Hi @mattgibson -- this is a known issue.
I think somewhere near here we need to tell mosca to choose an unused port.
We will investigate and get back to you. Let us know if you come up with anything.
from aws-utils.
Hrm I re-read that code and looked up the port 1883
and now know it has something to do with the mqtt setup.
from aws-utils.
Previous attempt at fixing this issue was : 99bb347
from aws-utils.
Looking at where mosca is started here https://github.com/ConduitVC/aws-utils/blob/master/packages/appsync-emulator-serverless/serverCore.js#L323
I found I could fix the error in one line if I did this:
const mqttServer = new mosca.Server({
port: pareseInt(port, 10) + 1,
backend: { type: 'memory' },
});
But i'm not sure if that actually broke the subscriptions or not. it just fixed the error and let me start both instances.
from aws-utils.
My hypothesis is there is an additional port bound by mosca that we are in fact not using. There should be some mechanism to turn that off (I am investigating now)
from aws-utils.
I can reproduce this issue on ^0.7.1
(in our test repo) but cannot reproduce on master...
from aws-utils.
I found another issue on master and will publish a version shortly which will include this fix ! I also updated our test repo to run tests in parallel to verify we don't break this in future.
from aws-utils.
Please try 0.12
and see if that works better! I published a few fixes.
from aws-utils.
Marking this as closed . please reopen if issue persists.
from aws-utils.
@lightsofapollo Thanks for the quick fix! Version 0.12
does fix the issue of not being able to run two instances, but I was unable to verify that the subscriptions function correctly. I'll open another issue if that turns out to be the case in future.
from aws-utils.
Related Issues (20)
- Cannot find function config for function : undefined HOT 1
- Failure trying to run tests HOT 3
- ValueMapper: JavaString HOT 2
- Feature request: Aurora (RDS) Serverless support HOT 1
- AppSync Emulator - Support Condition Expressions
- AppSync Emulator - Support $context.stash
- appsync emulator resultItems mapping template example does not work in AWS
- [appsync-emulator-serverless] Does not respect multiple appsSync API's in config HOT 2
- AppSync Emulator - Support RegEx in string split
- Cannot Install on Windows HOT 1
- [appsync-emulator-serverless] Conflicting peer dependencies
- Bug with getting PID by port HOT 9
- Lambda datasource docker HOT 12
- Emulator does not throw error when AppSync does
- AppSync Emulator - AWSEmail and AWSURL HOT 1
- Incorrect string equality in VTL templates HOT 1
- Unable to Invoke lambda function HOT 2
- Mismatch between AWSJSON and AppSync
- Assertions within createSchema method prevent DynamoDB from being null HOT 1
- Incorrect $util.isNullOrEmpty check in appsynce-emulator HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-utils.