Разбор данных json о валюте с сайта poe ninja не удался

Обновлено: 06.07.2024

The text was updated successfully, but these errors were encountered:

I'm having the same problem, the first day of the league it worked just fined, it started happening after yesterday update and reinstalling an older version didn't fix it. Incursion/HC Incursion don't show up anymore in the settings combobox and the "searchLeague" value in the .ini is still "hardcoreincursion".

I persistently got that error every time i lauunched the macro from right before Incursion, at Incursion Queue, after the start, and for the first 24 hours. It didn't prevent anything from workig once i Ctrl+L'd into the right league though.

Today, i didn't get the error message. (edit: well, maybe ever since changing the league with ctrl+L. also, i'm on hardcore incursion.)

slasso93 commented Jun 3, 2018

If I change the league search to "incursion" it gives the parse error. "tmpstandard" does not

Eruyome commented Jun 4, 2018

@dsnvwlmnt So this is solved for you?
@slasso93 You mean manually writing the ini key to "incursion" fails but setting "tmpstandard" in the menu works?
@cestarix are you actually using "tmpstandard/tmphardcore" in the settings?

dsnvwlmnt commented Jun 4, 2018

Everything seems fine for me at the moment.

slasso93 commented Jun 4, 2018

@Eruyome Idk what happened. But i was having issues where the league would change to standard when i did a price search on an item. Even when I kept trying to set tmpstandard. I also had "incursion" in the drop down. When I closed and reopened poe trademacro, it would not start correctly. I deleted the trade macro folder and redownloaded the latest release. Still same issue (because the ini file is in a different location). I changed the league manually back to tmpstandard in the ini file and now it works. There's no incursion in the drop down so I'm confused how it let me do it.

"incursion" should never be written to the ini nor be visible in the settings menu. If you have any idea on how to reproduce this please tell me. Could it be that you run the macro in the time where Incursion was supported on poe.trade but the league wasn't live yet?
The macro tries to match poe.trades leagues to the ones from GGGs API but also schows the ones that are only supported on poe.trade, which may not be needed anymore but was at some point for 1month races. Maybe that caused the macro to write incursion to the ini and the macro couldn't figure out how to handle it.

I have the same issue and Incursion is not written in the file. It was working all weekend, but just now it will not log in.

edit: seems like there's some issues going on with the poe website and the poe.trade website, so maybe it's all related.

ndimario commented Jun 7, 2018

I've had this issue for some time (still have it). I tried deleting the folder and appdata with trade macro in it. redownloaded and reran everything. Same issue.

tamaroth commented Jun 7, 2018

I had the same issue. I have checked the file:

and indeed I have had:

After changing it to

searchLeague=tmpstandard and restaring PoE-TradeMacro, everything is working fine.

As you have mentioned, I have used poe-tm when league was on on poe.trade but wasn't active just yet, maybe that's why.

Other than that I have no idea how and when that value was changed.

Eruyome commented Jun 8, 2018

It's very likely for that reason, I'll have to see why the script isn't overwriting that invalid value with a valid one though.

I have the same issue on 2.10.4. I got this error yesterday. I did a clean install (%userprfile%\Documents\PoE-TradeMacro was deleted) but an error message is still showing.
League (setted by default and not changed after installation):
searchLeague=tmpstandard

What happens if you run the macro and change the league, either via hotkey or via menu? Do you also get an error message?

Ivan-Karimov commented Jun 10, 2018

After changing league via Ctrl+L error message disappears for a while (without reloading macro).

Eruyome commented Jun 10, 2018

For a while? So it can reappear while leaving the macro running? And changing the league doesn't cause an error, only the first macro start?

The macro makes the same request to poe.ninja on startup, on changing leagues and periodically in the background to update the data.

Sometimes I have that issue when starting the macro or that appears after some time when the macro was launched before. But after changing league via Ctrl+L that error disappears. BTW, an error window appears 3 or 4 times. Then, after some time this situation repeated and I change league again to remedy the situation.

PS: I did't use any VPN or Proxy services and I can open poe.ninja in browser.

Eruyome commented Jun 12, 2018

So basically the request works in general.
For some reason there are times where it doesn't, which would suggest that this issue is either on your end or that there are occasions where the issue lies between your pc/router to poe.ninja.

I'll try and make a dev version that can show some more information, but I don't know whether this can show anything relevant.

Ivan-Karimov commented Jun 12, 2018

An error appears 5 times (1 time per league including event leagues).

Eruyome commented Jun 15, 2018

We can take a look at the response that you get from poe.ninja.

This is the curl request, here for the hc incursion league:

It uses my local path to trademacros curl.exe, you can easily see yours by opening temp\StartUpLog.exe where some similiar requests are displayed, but with your local paths.

Take the command above and replace the path to curl.exe with a valid one on your system. Then open a windows console/terminal/cmd window and execute this command there.

At least you should if everything works, but I guess it doesn't at least sometimes in your case.

Eruyome commented Jun 15, 2018

Response from poe.ninja is ok:

I'll try use dev version and do request when error appears again.

Ivan-Karimov commented Jun 20, 2018

No errors after few days on dev version.

Good to hear, I'll keep the issue open for a bit longer for visibilty and in case the problem still reappears.

Simpsonboy77 commented Sep 13, 2018

I get the same issue. I reinstalled the trade macro and deleted %userprofile%\Documents\PoE-TradeMacro.

I get a 301 moved permanently response. When I open it in the browser it loads the JSON properly.

I don't have curl anywhere else on my system, or in my PATH. When I go to C:\ and run curl it says not found. So it should definitely be using TradeMacro's curl.

In StartupLog.txt I only see 3x 200 responses.

Fair warning: I'm running this via WINE on Linux, but I always get the same issue without fail when starting the script; the rest seems to work perfectly.

EDIT: I just tested the dev branch, but run into the same issue. Here's the created StartupLog.txt which looks okay at a glance.

Eruyome commented Jan 7, 2019

Can you make sure that all files in <tm folder>\temp are deleted properly before starting the script? Not sure if related but I had at least one user where this failed. Downloaded json will be appended to the corresponding file (after deleting it first, which failed).

This was related to GGGs API data for leagues though but it's the same principle. The file contained the same contents multiple times which broke the json structure and therefore the json parsing.

Are you sure that's the entire startuplog? It seems quite short, completely missing this:

cryzed commented Jan 12, 2019

Sorry for the late reply, just saw this -- but I see that you were a bit quick on the draw (unless you found the source of the issue?). I reinstalled the script several times (including clearing out all temp data/directories created by the script), and I am positive those were the full contents of the file.

If you want me to rerun the script with a completely fresh state and then upload the logs again, I will definitely do so.

Well, I cleaned up a bit, too many issues without any responses to my last answer/question for too long. Maybe closing this was too quick.

I need your startuplog again.
Even more useful would be executing the curl command in a windows cmd/terminal or unix shell.

I want a screenshot of the response.

Here's the request directly from my Linux shell:

Something that immediately appears a bit strange to me, is the parsing of the quotes: In my Linux shell these are just used to delimit the actual value of the -w parameter, but in the WINE environment they are part of the value instead. Are you somehow manually parsing the status code at the bottom, and your script fails on that maybe? Maybe that's just normal on Windows systems though.

Avatar

Version 2.5.5 force PoE client from Windowed Fullscreen to Windowed mode, have to manually change the setting again to get the client back to Windowed Fullscreen.

While starting the script, cannot do anything but update, which fails to

" Parsing the currency data (json) from poe.ninja failed.
This should only happen when the servers are down / unavailable.

Using archived data from a fallback file.league: "league".

This can fix itself when the servers are up again and the data gets
updated automatically or if you restart the script at such a time. "


Been like this for 3 days, have not tried to manually install 2.5.6 version yet,
just wanted report the errors i have received.

И сегодня, после обновы, перестал скрипт работать. Ошибку выдает весь день.

"Разбор данных (json) о валюте с сайта poe.ninja не удался. Такое возможно, когда серверы отключены/недоступны. Будут использованы архивные данные из резервного файла. Лига "Standart". Это может быть исправлено, когда сервера снова заработают/станут доступны, и данные будут обновляться автоматически. Попробуйте перезапустить скрипт через некоторое время."


Со вчерашнего дня такая же проблема, антривирус не менял, но, ради интереса, отключал и пробовал без него, переустановил прогу, сайт этот нинзя работает, не пойму в чем проблема.

Upon starting the script I get this error since yesterday.
I have tried start as admin and reinstalling the script completly.
I have checked if poe.trade or poe.ninja or GGG's site are down but they are not and the script is working fine for other friends.

The text was updated successfully, but these errors were encountered:

Eruyome commented Dec 14, 2017

I don't have that issue, many others don't seem to have it. My first guess would be that the issue is on your end. Does it always show up or just here and there?

simon-menard-lariviere commented Dec 15, 2017

I had the same problem since the Abyss league and for now I seem to have fixed it.
For some reasons, I didn't have any league selected. I went to my setting, set tmpLeague and pressed OK.

@Eruyome It always shows up, Im downloading the new version right now and hope that fixes it :)

edit1: Downloaded new version, still shows up

uszkay commented Dec 15, 2017

A few patches back (2.6.2 perhaps) the League choice went from tmpstandard/tmphardore to abyss/hardcoreabyss.
Now the League choice is back to usual tmpstandard and tmphardore.

If you've chosen the differently named League, like I did back then, then you'll have this error now.

If you go back to the options now and your League is empty, just select your appropriate league from the dropdown menu and it'll work again just fine. I've tested with closing the script/macro and re-opening and it still saved the correct league.

Читайте также: