-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Depending the order, some itens in the RequestJSON wont go to the output. #52
Comments
Comigo acontece a mesma coisa ao tentar consumir uma api de clima. |
Are you saying that moving |
Yeah. If I put in the top, i cannot obtain the rest of the JSON. Only the privacy indexes. |
Hmm that is very odd, I can't see any field mutations going on in the getter https://github.com/Southclaws/pawn-requests/blob/master/src/natives.cpp#L489-L515 any idea @ADRFranklin ? |
this is weird. the same thing happens to me when trying to consume this api: |
I'll do some tests tonight changing the order. Will put the code + output in imgur, just to not put so many pics here. |
I noticed this issue a while ago, when rewriting my geoip library, it seems in some cases it's not able to find the fields in the extracted and parsed json results. I never found time to debug it, and I don't currently have the time to debug it now. If no one else is able to debug it, then you'll have to wait for me to get some free time. Also I am linking my geoip library as I think it's more beneficial to you then what you have. |
Understandable. I'll wait then, thanks. |
@pushline after further investigation, it turns out that you need to turn off garbage collection for the initial node, as the second node you create causes the first one to be garbage collected and removed. So simply adding
Please give this a test and tell me if this works for you? |
output: |
@The-Rett Show the json output so it can be tested to see what is happening. |
` status=200, weather=, temp=285°C, temp_min=283°C, temp_max=288°C, cityname=, country= |
@ADRFranklin I changed my API for the IP thing cause I couldn't retrieve the proxy/vpn parts cause they need to be paid. @The-Rett as I saw in Franklin's example u need to aswell desactivate the MainNode before everything and after the child ones. |
Funcionou, obrigado. |
All good @ADRFranklin, he just forgot to deactivate the MainNode, thanks, it worked! |
I was using an API (https://ipinfo.io/) to check if the players IP were vpn/proxy, and so some other things with it. The problem is, if i do the callback on a certain way to retrieve the data, it does not work anymore. Changing the order wont resolve it and etc.
If i do the "privacy" object in the bottom, it wont work, and the "ret" error will be 1.
I was doing the test aswell in a weather api (https://openweathermap.org/api) and occurs the same thing.
My code:
The text was updated successfully, but these errors were encountered: