Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion error on register #128

Open
phil-warner opened this issue May 14, 2018 · 6 comments
Open

Assertion error on register #128

phil-warner opened this issue May 14, 2018 · 6 comments

Comments

@phil-warner
Copy link

Hi

I'm using swagger-restify-mw and when I start my app I get the following error. It's not obvious to me what the problem is, but I thought it might be to others.

AssertionError: The first character of a path should be `/` or `*`
    at Router.on (/opt/bitnami/apps/smsWorks/sms-works/node_modules/find-my-way/index.js:44:3)
    at RouterRegistryRadix.add (/opt/bitnami/apps/smsWorks/sms-works/node_modules/restify/lib/routerRegistryRadix.js:42:21)
    at Router.mount (/opt/bitnami/apps/smsWorks/sms-works/node_modules/restify/lib/router.js:167:20)
    at Server.serverMethod [as del] (/opt/bitnami/apps/smsWorks/sms-works/node_modules/restify/lib/server.js:1476:33)
    at /opt/bitnami/apps/smsWorks/sms-works/node_modules/swagger-node-runner/lib/restify_middleware.js:23:18
    at Array.forEach (native)
    at Middleware.register (/opt/bitnami/apps/smsWorks/sms-works/node_modules/swagger-node-runner/lib/restify_middleware.js:22:17)
    at /opt/bitnami/apps/smsWorks/sms-works/app.js:86:24
    at /opt/bitnami/apps/smsWorks/sms-works/node_modules/swagger-restify-mw/lib/index.js:32:5
    at /opt/bitnami/apps/smsWorks/sms-works/node_modules/swagger-node-runner/index.js:234:7
@phil-warner
Copy link
Author

Some extra information. I'm using Restify 7 on Node 8, with Swagger Node Runner 0.7.3.

@phil-warner
Copy link
Author

More information... This looks like an incompatibility with Restify 7, which uses find-my-way for routing purposes. I downgraded to Restify 6.4.0, which fixed the issue.

@theganyo
Copy link
Collaborator

Thanks! This is good to know.

@luisbilecki
Copy link

Thanks!

sonihimanshu pushed a commit to sonihimanshu/swagger-node-runner that referenced this issue Aug 25, 2018
@phil-warner
Copy link
Author

Can we get this fixed?

@prachikhadke
Copy link

I resolved this by downgrading to v6.4.0

JuniusBBD added a commit to JuniusBBD/swagger-node-runner that referenced this issue Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants