-
Notifications
You must be signed in to change notification settings - Fork 85
Immediate failure when adding simple:json-routes #82
Comments
Hmm, any chance you could make a reproduction? I've used this package in a variety of apps and haven't seen this issue, perhaps it's specific to iron:router. |
Also ran into this issue when using simple:rest in conjunction with iron:router |
Apologize, I moved on to Restivus and didn't post a repo. I have a private repo that I could add you as a team member if you'd like. |
I encounter the same bug. |
We also got this, but when upgrading to JsonRoutes 2.0.0. I couldn't get to the root cause, so I finally went down the route of eliminating IronRouter from the app completely. I had the same stack trace as @zuizuihao above – seems like IronRouter is hooking into some global Connect module logic, and getting called as a middleware? (in a |
+1. 1.0.4 does not have this. Repro: add latest iron:router and nimble:restivus into the same project. Using pre-0.8.6 of nimble:restivus (when they switched to 2.0.1 of simple:json-routes) doesn't have this problem ie. 0.8.5 is fine. |
+1 using FlowRouter, getting same issue with Fiber after install. Using Meteor 1.3-beta-8 |
I'm having the same issue. Iron:router and simple:json-routes are not compatible. |
halp! same error here. simple:json-routes* upgraded from 1.0.4 to 2.0.1 now i get the same error. what to do? |
+1 same error immediately upon adding simple:json-routes to 1.2 project with iron-router |
Thankfully I got a reproduction of this from the Galaxy team. Simple:rest and json-routes should now be compatible with all other middleware packages for Meteor. Thanks for reporting. |
@stubailo
I'm using |
@namirsab interesting, have you upgraded to the newest versions? |
Yes i used the latest restivus package. Before this issue was fixed i couldn't even use it, but after that I can use it but the problem I mention happens. |
@namirsab can you give me the contents of the |
Sorry it was not possible for me to give you the |
Anything involved in server-side routing - middlewares, iron router, restivus, etc. Alternatively, if you could set up a reproduction that would be super helpful. But it's hard to know what's going on exactly without a way to get it to happen on my machine. |
Okey, I will try to set up a repro with just a few package. |
I am also getting the same error when trying to register a new user with the rest-accounts-password package. I have no other simple: packages installed other than the ones that are required. |
Still looking for a reproduction! |
I'm getting this as well, with
|
Tried adding simple:rest to a Meteor 1.2 project. Immediate failure on any of the application's pre-defined urls (using iron:router)
Error: Meteor code must always run within a Fiber. Try wrapping callbacks that you pass to non-Meteor libraries with Meteor.bindEnvironment.
Appears in client browser and server console, pointing back to ...simple_json-routes/.2.0.0.1im763x++os+web.browser+web.cordova/npm/node_modules/connect-route/lib/connect-route.js:110:5)
Removed simple:rest, working again. Tried adding just simple:json-routes and firing up app, same issue.
The text was updated successfully, but these errors were encountered: