Comments (7)
can you provide config example?
from what I see in line 13 in stack trace
const compiledExp = pathToRegExp.compile(actionParams.rewrite);
it looks like no rewrite
property
rewrite:
-
action:
rewrite: /status/:code
from express-gateway-plugin-rewrite.
Note:
Once the schema support in the gateway will be published, I'll definitely make a PR and add a schema for the parameters so this should not happen anymore.
from express-gateway-plugin-rewrite.
@imthinhvu Did you solve your issue?
from express-gateway-plugin-rewrite.
@XVincentX I did not. I ended up giving up on express-gateway for now as I didn't want to deal with not knowing the file configuration specifics, and I don't have the time to dig into issues like this to figure it out.
from express-gateway-plugin-rewrite.
That's sad to hear — I'd love to know more about that. Did you find the documentation hard to navigate? Or is the configuration file just hard to reason about?
I'm going to close this one for now — feel free to reopen if you'd like to dig into this again!
from express-gateway-plugin-rewrite.
@XVincentX For the most part, the documentation is pretty easy to navigate--I did not have a bad experience going through the initial "Getting Started" steps. I did find some difficulty around the configuration with plugins, however, and think there can be some work done there. I have no doubt that your suggested fix would have fixed my problem, but I also would've expected a simple fix like that to error out properly to the user. Express-Gateway seems like a great product, but as of right now, in my opinion, it's just not mature enough to try to use in an enterprise setting. I will definitely try revisiting it again in the near future. Thanks for all of the hard work!
from express-gateway-plugin-rewrite.
I totally get your concerns — and one more time thank you for taking the time for filing the issue.
About this one in particular, the upcoming gateway releases will have a schema validation feature that should hopefully totally prevent these problems in the future. We try to improve as we go, and offer the best support we can.
It's just not mature enough to try to use in an enterprise setting
That's a fair point. What's sure is that we do not really have super enterprise on our "curriculum" yet — although Joyent is actively using us and giving great feedbacks.
I hope you're going to come back one of those days — and see you happy!
from express-gateway-plugin-rewrite.
Related Issues (8)
- [EG:gateway] rewrite plugin hasn't provided a schema. Validation for this plugin will be skipped. HOT 5
- gateway crashes when using rewrite plugin HOT 1
- The automated release is failing 🚨
- Could not modify the headers
- Write JSON schema for plugin rewrite parameters
- express-gateway v1.6 appears to break this plugin HOT 1
- Add `debug` for outputting logs while debugging HOT 1
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 express-gateway-plugin-rewrite.