bstaple1 / MTGA_Draft_17Lands

Magic: The Gathering Arena draft tool that utilizes 17Lands data
MIT License
108 stars 31 forks source link

Scryfall data unavailable #18

Closed Girtti closed 2 years ago

Girtti commented 2 years ago

Hi there! Great work and I highly appreciate it! Unfortunately, when I try to upload DMU set, I cannot reach Scryfall data. image image

Is this because of embargo? Is it just me? Also, is there anything I can do with that?

Win build 3.03

bstaple1 commented 2 years ago

Could you click on the Default Settings button in the settings window and retry the download?

Also, could you attach your debug.log file from the Debug folder?

Thanks.

Girtti commented 2 years ago

Thank you for the quick response! <09/15/2022 12:20:55>,https://www.17lands.com/card_ratings/data?expansion=DBL&format=QuickDraft&start_date=2019-1-1&end_date=2022-09-15&colors=BG <09/15/2022 12:20:55>,retrieve_17lands_data Error: HTTP Error 503: Service Temporarily Unavailable

debug.log

Also, tons of errors <09/15/2022 11:38:24>,__arena_log_check Error: [WinError 3]

And some <09/15/2022 11:35:37>,Couldn't Collect Local Card Data <09/15/2022 11:37:08>,_process_scryfall_data Error: 'image_uris'

What is more interesting, I can reach the mentioned URL from my Chrome. And the client, not able to reach logs is also strange, since I'm using MTGAssistant and Epic Games client for the game.

bstaple1 commented 2 years ago

Thanks for the log.

The tool searches the C,D,E,F drives for the Player.log file. Example: C:\Users\bstaple1\AppData\LocalLow\Wizards Of The Coast\MTGA\Player.log

What drive letter are you using?

Girtti commented 2 years ago

C, D and E I have 2 users, and for some reason it searches first and does not touch second (I'm using second)

bstaple1 commented 2 years ago

Can you identify the location of the Player.log file?

Is it in any of the <Drives C,D, or E>:\Users\\AppData\LocalLow\Wizards Of The Coast\MTGA\Player.log folders?

Girtti commented 2 years ago

C:\Users\N**v\AppData\LocalLow\Wizards Of The Coast\MTGA

It tries to search "N.***" user, while logs and everything is on "N ....V"

bstaple1 commented 2 years ago

Here's a temporary solution:

image

Girtti commented 2 years ago

Works superb! 2 more questions: 1) is there a way to manually upload json into the Magic Draft? Like if I have json and wanna use it manually? 2) I uploaded 7 more sets for Quick and Premier draft today. Should I reupload them anyhow now? Or it will work fine? image

And, one thing more - how often should I update set data? There is no auto update, right?

bstaple1 commented 2 years ago
  1. I'm going to need more context to answer this question
  2. That shouldn't be necessary. The sets that you've already downloaded should work.
  3. No, there's no auto update for the set data. 17Lands only updates their data once a day sometime between 01:30 and 03:00 UTC.

Note: 17Lands will time out a download request, producing the HTTP Error 503: Service Temporarily Unavailable result, if you try to download too many sets within a short period of time. Try to only download at most 2 sets in a 15 minute period

Girtti commented 2 years ago

Got it!