Giter VIP home page Giter VIP logo

Comments (6)

mlorbetske avatar mlorbetske commented on August 20, 2024 1

Sorry for the delay, looking in to this now. It looks like this had to do with cyclic references in the swagger document. I'm currently testing out a fix, thanks for reporting this 👍

from httprepl.

mlorbetske avatar mlorbetske commented on August 20, 2024

Would you be able to provide the swagger.json file that you ran in to this with or the callstack at the time of the crash?

from httprepl.

tomchavakis avatar tomchavakis commented on August 20, 2024

Unfortunately I am not able to provide the swagger.json, but I can provide a sample which includes, info, path and definitiions of the swagger file.
swagger.txt

from httprepl.

mlorbetske avatar mlorbetske commented on August 20, 2024

Using the document you've provided (thanks!) I'm not seeing a StackOverflowException being thrown, but I did notice that the definitions object is being defined within the paths section, causing a pointer resolution to fail (in responses for About) and definitions to show up as a path, but not causing a crash. I think the best thing to do here might be to attach to the dotnet process running the tool, set the debugger to break on all exceptions and point it at the document that you're running in to problems with. The debugger should break when the stack overflow occurs (or if it breaks earlier, continue until you hit the right exception) - from there, we should be able to figure out where it's getting stuck.

from httprepl.

tomchavakis avatar tomchavakis commented on August 20, 2024

Thank's for the answer and your time.
I will use dotTrace for that purpose or try to debug the tool in order to identify what causes the StackOverflowException.

from httprepl.

Cazzar avatar Cazzar commented on August 20, 2024

I also seem to have the same issue myself with the httprepl attaching it to my own Swashbuckle.aspnetcore generated swagger.json

I haven't looked at attaching a debugger, thought I would just provide this to try and help investigation.

from httprepl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.