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

Weird circular ref causes endless loop #56

Closed
JamesMessinger opened this issue Oct 19, 2017 · 3 comments
Closed

Weird circular ref causes endless loop #56

JamesMessinger opened this issue Oct 19, 2017 · 3 comments
Labels

Comments

@JamesMessinger
Copy link
Member

Something weird about the Bungie.net API causes the dereference() method to spin forever in an endless loop. I haven't had time to fully investigate why yet.

Code to reproduce the bug:

jsonSchemaRefParser.dereference('https://api.apis.guru/v2/specs/bungie.net/2.0.0/swagger.yaml')
    .then(() => {
        console.log('this line will never execute');
    })
    .catch(() => {
        console.log('neither will this line');
    });
@JamesMessinger
Copy link
Member Author

JamesMessinger commented Dec 11, 2017

This Stripe API does the same thing

@hipstersmoothie
Copy link
Contributor

....and the one for my job :( bundle works though.

@mikestead
Copy link

mikestead commented Feb 1, 2021

I was having this issue with the more recent Stripe spec. After upgrading to release v9.0.7 it seems to be fixed. Specifically #195 may have fixed it.

I just tested https://api.apis.guru/v2/specs/bungie.net/2.0.0/swagger.json from the original comment and it also fails (endless loop) in 9.0.6 and works with 9.0.7. cc @P0lip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants