iFraan / vandal.js

Wrapper for Valorant stats api
GNU General Public License v3.0
2 stars 1 forks source link

Issue JSON Input #6

Open OxydeDev1789 opened 5 months ago

OxydeDev1789 commented 5 months ago

image

Hello I am having a problem with vandal.js it says that there is an error between json and !DOC can you help me please

OxydeDev1789 commented 5 months ago

it causes this problem when the account is in private

OxydeDev1789 commented 5 months ago

@iFraan

OxydeDev1789 commented 5 months ago

image

I sometimes have Json errors nowhere, can you help me fix them please ?

OxydeDev1789 commented 5 months ago

image the end of the json is wrong which is why I have Json position errors

(When I do the curl command in my terminal it fully displays all the JSON data)

iFraan commented 5 months ago

With what users are you testing? Which version of curl are you using?

OxydeDev1789 commented 5 months ago

The user is Niroshy tag: 7407 and my curl version is Chrome/99 to solve the Cloudflare problem (When I do it on you everything works but for sure another person still has json errors as if he recovered not all the data)

iFraan commented 5 months ago

can you check out if this pr works for you? #7

OxydeDev1789 commented 5 months ago

how do I download it ? pls

iFraan commented 5 months ago

if you don't want to checkout the pr, you can install the branch as a package with npm with npm install iFraan/vandal.js#curl-to-fetch

OxydeDev1789 commented 5 months ago

image

the module does not want to install, I copied and pasted

iFraan commented 5 months ago

Don't you have git installed? getting started with git and download for windows

You required it to allow npm to download directly from github

OxydeDev1789 commented 5 months ago

I installed it still doesn't work

iFraan commented 5 months ago

did you restart your terminal after installing?

OxydeDev1789 commented 5 months ago

image

I managed to install when I placed the order I got this error

the result must have found a cloudflare page surely

OxydeDev1789 commented 5 months ago

Did you find how to fix it ?

iFraan commented 5 months ago

It looks like Cloudflare is blocking you. Can you access the URL from a browser? To rule out a temporary IP ban.

OxydeDev1789 commented 5 months ago

I have access to the link

OxydeDev1789 commented 5 months ago

through the browser it works but through the module it doesn't work

OxydeDev1789 commented 5 months ago

Do you have a solution for me ?