torch2424 / wasmboy

Game Boy / Game Boy Color Emulator Library, 🎮written for WebAssembly using AssemblyScript. 🚀Demos built with Preact and Svelte. ⚛️
https://wasmboy.app/
GNU General Public License v3.0
1.39k stars 65 forks source link

TypeError: failed to fetch #335

Closed Mayank-1234-cmd closed 3 years ago

Mayank-1234-cmd commented 3 years ago

I expected <iframe src='https://wasmboy.app/iframe/?rom-url=https%3A%2F%2Ffstest.mkcodes.repl.co%2Ffiles%2F%5Bhidden%5D+admin%2Fgb-gbc-archive%2F2003++Li+Bo+Te+2+-+Xiao+Shi+De+Mi+Shi+%28Unlicensed%2C+Chinese%29+%5BFixed%5DHa.gbc' /> to work (i got the file from windows93.net) but it returns 'TypeError: Failed to fetch'. Is this because the server thinks fetch is a bot or is it something else?

Mayank-1234-cmd commented 3 years ago

something that might help it is that you didn't use a cors proxy (it returns an error when fetched but when i fetch https://api.codetabs.com/v1/proxy?quest=https://fstest.mkcodes.repl.co/files/[hidden] admin/gb-gbc-archive/2003 Ha Li Bo Te 2 - Xiao Shi De Mi Shi (Unlicensed, Chinese) [Fixed].gbc it returns no error)

also i tried the same code in <iframe src='https://api.codetabs.com/v1/proxy?quest=https://wasmboy.app/iframe/?rom-url=https%3A%2F%2Ffstest.mkcodes.repl.co%2Ffiles%2F%5Bhidden%5D+admin%2Fgb-gbc-archive%2F2003++Li+Bo+Te+2+-+Xiao+Shi+De+Mi+Shi+%28Unlicensed%2C+Chinese%29+%5BFixed%5DHa.gbc' /> but it just shows a blank screen.

Mayank-1234-cmd commented 3 years ago

https://wasmboy.app/iframe/?rom-url=https://api.codetabs.com/v1/proxy/?quest=https%3A%2F%2Ffstest.mkcodes.repl.co%2Ffiles%2F%5Bhidden%5D+admin%2Fgb-gbc-archive%2F2003++Li+Bo+Te+2+-+Xiao+Shi+De+Mi+Shi+%28Unlicensed%2C+Chinese%29+%5BFixed%5DHa.gbc this worked