MadeBaruna / pom-moe

Mozilla Public License 2.0
87 stars 12 forks source link

Automatic Import doesnt work at all #19

Open ManuelGraf opened 1 year ago

ManuelGraf commented 1 year ago

so there are several bugs for importing wish history. I wasnt able to import it at all.

  1. drag n drop of data_2 file only threw error 'connection_failed' image image

  2. via powershell, first off Set-Clipboard doesnt exist in apparently powershell 6.x, but even copying the link and pasting it just shows the error [code: 400]. (POST to https://api.pom.moe/warp returns http 400) the url itself works: https://api-os-takumi.mihoyo.com/common/gacha_record/api/getGachaLog?authkey_ver=1&sign_type=2&auth_appid=webview_gacha&win_mode=fullscreen&gacha_id=8296da3f51e9db54130df8960884ab32e15210&timestamp=1693353746&region=prod_official_eur&default_gacha_type=11&lang=en&authkey=not_gonna_paste_that_here29&plat_type=pc&page=1&size=5&gacha_type=11&end_id= image image

I omit the authkey here because I dont paste stuff like this in public. But yeah it seems to be a bad request, but i just did as the tutorial said.

SleepingPanda commented 1 year ago

I'm having this issue as well.

darkash commented 1 year ago

it seems to be a random error, you have to retry it several times for it to work unfortunately.

quazar-omega commented 1 year ago

it seems to be a random error, you have to retry it several times for it to work unfortunately.

Would pasting the same link again and again work somehow?
I tried a few times, but it just kept erroring out, how many times would you do it?

darkash commented 12 months ago

it seems to be a random error, you have to retry it several times for it to work unfortunately.

Would pasting the same link again and again work somehow? I tried a few times, but it just kept erroring out, how many times would you do it?

Last time I retried around 5 times with the same link for it to pass. The api seems unstable at that time, not sure about now though

quazar-omega commented 12 months ago

Ok, after checking again I realized that I was using the wrong URL I think, I'd been trying starting with https://gs.hoyoverse.com/hkrpg/event/e20211215gacha-v2/index.html, but then I used the one starting with https://api-os-takumi.mihoyo.com/common/gacha_record/api/getGachaLog and it went through the first time.
I don't know if it's just coincidence though, because I used to get the first kind of link before and Star Rail Station always worked with it

darkash commented 12 months ago

Ok, after checking again I realized that I was using the wrong URL I think, I'd been trying starting with https://gs.hoyoverse.com/hkrpg/event/e20211215gacha-v2/index.html, but then I used the one starting with https://api-os-takumi.mihoyo.com/common/gacha_record/api/getGachaLog and it went through the first time. I don't know if it's just coincidence though, because I used to get the first kind of link before and Star Rail Station always worked with it

It's a coincidence, even if you use takumi link it can still fail (5 times is with takumi link btw), but it indeed need to use that link for it to succeed

Previously gs.hoyoverse is webstatic-sea.hoyoverse and it will always fail, only takumi worked

quazar-omega commented 10 months ago

I've been updating my list frequently in the past few weeks to verify and I have never had any more problems with the getGachaLog (except one time, where I retried and it immediately worked again anyway).
Was the other URL I'd been using actually another valid one? Might have just been me mistyping.

Aside from that, how has it been for you @ManuelGraf, if this other URL (which was the one you were using already) works again, then the issue could be closed no? Or maybe references to the previous one should also be removed in the codebase?