Comments (4)
##Update
I believe this is associated with issue #501 . I am encountering events not being emitted only after experiencing issue #501. I have experienced it across different apps, services and tenants but as I wasn't specifically trying to reproduce it, didn't document how to duplicate it. I'll update this issue if I can re-duplicate the issue.
from event-gateway.
Update 2
To duplicate this issue
- Continuing off from issue #501, duplicate but rename the createUser function in handler.js and update serverless.yml as follows
createUserDuplicate:
handler: handler.createUserDuplicate
events:
- eventgateway:
type: sync
eventType: http.request
path: /usersduplicate
method: POST
- run
sls deploy
- do
curl -X POST -H "Content-Type: application/json" https://${APP}/usersduplicate --data '{ "id": "10", "firstName": "Donald", "lastName": "Duck", "email": "[email protected]" }'
- run
sls logs --function emailUser
. It shows event received
Received user.created event with user:
{ email: '[email protected]',
firstName: 'Donald',
id: '10',
lastName: 'Duck' }
- run
sls remove
- run
sls deploy
- run
curl -X POST -H "Content-Type: application/json" https://${APP)/usersduplicate --data '{ "id": "10", "firstName": "Donald", "lastName": "Duck", "email": "[email protected]" }'
- run
sls logs --function createUserDuplicate
. It'll showEmitted user.created event
- run
sls logs --function emailUser
. It'll showNo existing streams for the function
from event-gateway.
Hey @johnlim, thanks for raising.
Can you add the configuration for the function that's subscribed to the user.created
event? That should help with debugging.
from event-gateway.
Hi @alexdebrie, thanks for responding.
I'm basing the code from https://github.com/serverless/event-gateway-getting-started, therefore the configuration that subscribed to the user.created
event is as follows:
emailUser:
handler: handler.emailUser
events:
- eventgateway:
type: async
eventType: user.created
I just double-checked the dashboard and realised event-gateway actually fired the event but the subscriber was not triggered in this particular instance.
from event-gateway.
Related Issues (20)
- Looking for authorizer specification example HOT 21
- Authorization PrincipleId not being persisted HOT 2
- Feature Request: BigQuery Integration
- Replace gometalinter with golangci-lint
- Read Events from a Queue (ampq/stomp) HOT 4
- Deploying errors when subscribing to dynamodb stream HOT 7
- Event Subscription/Deletion bug HOT 1
- http.request type is not found. HOT 2
- Event-gateway with minikube. "cannot validate certificate" HOT 5
- Feature Request: Loading initial configuration from static files
- Tag versions with "v" prefix
- sync events emission returns immediately HOT 3
- Defined Event Subscription not triggering function invocation HOT 2
- config.slsgateway.com subscriptions create indicates failure due to missing space prefix HOT 1
- Is the eventgateway project open source still active HOT 1
- Event gateway URL is returning a NotFound
- request: non-helm .yaml install for minikube
- What happened to this project? HOT 2
- Plans to upgrade?
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 event-gateway.