libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.4k stars 1.84k forks source link

Retroarch Webplayer - SyntaxError: JSON.parse #10592

Open Krakinou opened 4 years ago

Krakinou commented 4 years ago

Description

When installing RetroArch web player following these instructions and accessing the webplayer URL, these error messages are displayed:

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
onreadystatechange https://yuno.dev/retroarch/browserfs.min.js:9
    i https://yuno.dev/retroarch/browserfs.min.js:9
    _requestFileSync https://yuno.dev/retroarch/browserfs.min.js:6
    b https://yuno.dev/retroarch/browserfs.min.js:6
    setupFileSystem https://yuno.dev/retroarch/libretro.js:98
    afs https://yuno.dev/retroarch/libretro.js:44
    b https://yuno.dev/retroarch/browserfs.min.js:5
    e https://yuno.dev/retroarch/browserfs.min.js:5
Error: Unable to find listing at URL: ${listingUrlOrObj}
b https://yuno.dev/retroarch/browserfs.min.js:6
    setupFileSystem https://yuno.dev/retroarch/libretro.js:98
    afs https://yuno.dev/retroarch/libretro.js:44
    b https://yuno.dev/retroarch/browserfs.min.js:5
    e https://yuno.dev/retroarch/browserfs.min.js:5

Retroarch won't start and I cannot start a core

Version/Commit

You can find this information under Information/System Information

Environment information

Krakinou commented 4 years ago

Hi, upon further check, it seems that it's due to my nginx config that do not redirect /assets/ correctly. It seems that the web player cannot be run in a context_path, meaning on https://domain.tld/retroarch for instance? Only on retroarch.domain.tld? Do you confirm?