inotia00 / rvx-builder

A NodeJS ReVanced Extended builder
GNU General Public License v3.0
525 stars 47 forks source link

Workaround for APKMirror crash (Issue #89) #109

Closed Shaarigan closed 9 months ago

Shaarigan commented 9 months ago

When APKMirror is not reachable due to firewall or provider settings, an error occurs (https://github.com/inotia00/rvx-builder/issues/89):

FetchError: invalid json response body at https://www.apkmirror.com/wp-json/apkm/v1/app_exists/ reason: Unexpected token < in JSON at position 0 at C:\snapshot\rvx-builder\node_modules\node-fetch\lib\index.js:273:32 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async fetchPackages (C:\snapshot\rvx-builder\wsEvents\getApp.js:19:20) at async getPatches (C:\snapshot\rvx-builder\wsEvents\getApp.js:40:16) at async WebSocket

Added a silent catch to this error so we could continue running builder by uploading an APK file from disk. Build v3.9.12-1 tested on Windows 10

inotia00 commented 9 months ago

looks good