Redoc: Unable to resolve $ref pointer "file:///openapi.json"

Created on 31 Jul 2018  路  1Comment  路  Source: Redocly/redoc

Hi there,

I am experimenting ReDoc locally but i got the following error message when i try to use the api spec locally.

Something went wrong...
Unable to resolve $ref pointer "file:///openapi.json"
Stack trace
SyntaxError: Unable to resolve $ref pointer "file:///openapi.json"
    at Function.syntax (file:///node_modules/redoc/bundles/redoc.standalone.js:55:33727)
    at file:///node_modules/redoc/bundles/redoc.standalone.js:73:35706

ReDoc Version: 2.0.0-alpha.30 
Commit: ea2210a

I have found the following PR as merged but i am not sure if it is released or not.

https://github.com/ikalnytskyi/sphinxcontrib-redoc/pull/14

Also I found the following issues:

https://github.com/Rebilly/ReDoc/issues/149
https://github.com/Rebilly/ReDoc/issues/390
https://github.com/Rebilly/ReDoc/issues/113

Is it not supported to load apis locally?

Best,

Bilal

add-to-faq question

Most helpful comment

@lalib yes, there is no way ReDoc can load the spec from local file system due to browser security restrictions. All the details are described in #149.

You can use redoc-cli bundle command which works pretty similar to ikalnytskyi/sphinxcontrib-redoc#14

>All comments

@lalib yes, there is no way ReDoc can load the spec from local file system due to browser security restrictions. All the details are described in #149.

You can use redoc-cli bundle command which works pretty similar to ikalnytskyi/sphinxcontrib-redoc#14

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahshum picture ahshum  路  3Comments

shreyas-agnihotri picture shreyas-agnihotri  路  3Comments

skllcrn picture skllcrn  路  3Comments

gauravmokhasi picture gauravmokhasi  路  4Comments

typekpb picture typekpb  路  4Comments