Comments (1)
##Update
I managed to duplicate the issue. Using the project from https://github.com/serverless/event-gateway-getting-started as an example:
The steps to reproduce the issue are as follows
- Clone the repo
- Modify serverless.yml to your own tenant and app
- Run
npm install
and thensls deploy
- Add a name parameter to the getUser function in serverless.yml as follows
functions:
getUser:
handler: handler.getUsers
name: "whoAmIs"
events:
- eventgateway:
type: sync
eventType: http.request
path: /users/:id
method: GET
- Run
sls deploy
- Modify the name parameter again. For example:
functions:
getUser:
handler: handler.getUsers
name: "whoAmIsssssss" #update the name
events:
- eventgateway:
type: sync
eventType: http.request
path: /users/:id
method: GET
- Run
sls deploy
- Error is displayed
Event Gateway Plugin
Serverless: WARNING: Inappropriate call of provider.request()
EventGateway: Function "getUser" registered. (ID: whoAmIs)
Error --------------------------------------------------
Could not subscribe the whoAmIs function to the '/huubaper-test/users/:id' endpoint. A subscription for that endpoint and method already exists in another service. Please remove that subscription before registering this subscription.
- Run
sls remove
- Following error is displayed
Event Gateway Plugin
EventGateway: Subscription "user.created" removed from function: test-dev-emailUser
EventGateway: Subscription "http.request" removed from function: test-dev-createUser
EventGateway: Event Type "email.sent" removed.
Error --------------------------------------------------
Failed to delete http.request event type due the error: Event type cannot be deleted because there are subscriptions using it.
iirc, I've also encountered this issue when updating the handler name. Hope this helps.
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 not emitted even though emit() call executed successfully HOT 4
- 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.