Skip to content

Error generating API - cannot find file #261

@snisar

Description

@snisar

I and a colleague have both started encountering this error when trying to generate API's.

Error on API generation from http://localhost:5000/swagger/v1/swagger.json: ResolverError: Error downloading http://localhost:5000/swagger/v1/swagger.json
fetch failed

Browsing to the file specified in the error above works fine.

If I change the location to a file in a directory, that also does not work.

config file:
{"input": "c:/temp/swagger.json", "output": "app/api", "ignoreUnusedModels": false }

Output

Error on API generation from c:/temp/swagger.json: ResolverError: Error opening file "F:\AgVentory\ClientApp\node_modules@apidevtools\json-schema-ref-parser\c:\temp\swagger.json"
ENOENT: no such file or directory, open 'F:\AgVentory\ClientApp\node_modules@apidevtools\json-schema-ref-parser\c:\temp\swagger.json'

Not sure what has changed to cause these errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs infoMore information is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions