Openarl / PathOfBuilding

Offline build planner for Path of Exile.
MIT License
2.15k stars 1.04k forks source link

Unsupported image file format #1464

Open ddkdmntr opened 5 years ago

ddkdmntr commented 5 years ago

Hi, i decided to upgrade my PoB because of new skill tree changes and got strange issue 1221 asdad anyone else got this issue ?

bobullah commented 5 years ago

I have exact problem.

temmings commented 5 years ago

Image files url is response status 301 now.

curl -I https://web.poecdn.com/gen/image/YTozOntpOjA7aToyMjtp/OjI7YToyOntzOjE6InQi/O2k6MjE7czoyOiJzcCI7/ZDowLjM4MzUwMDAwMDAw/MDAwMDAwNzU0OTUxNjU2/NzQ1MTA2NDQ3NDg4MDY5/NTM0MzAxNzU3ODEyNTt9/aToxO3M6MzI6IjQwMTVj/NTk0MjZhYzE5ZTY1Mjlm/YzJjOTA2ODI0N2I0Ijt9/9ea5cf8a40/PassiveSkillScreenAscendancyButton.png
HTTP/1.1 301 Moved Permanently
Date: Mon, 18 Mar 2019 22:24:02 GMT
Content-Type: text/html
Connection: keep-alive
Set-Cookie: __cfduid=dccea5ad7613fb3739042bee079a7d3eb1552947842; expires=Tue, 17-Mar-20 22:24:02 GMT; path=/; domain=.poecdn.com; HttpOnly
Location: https://www.pathofexile.com/gen/image/YTozOntpOjA7aToyMjtp/OjI7YToyOntzOjE6InQi/O2k6MjE7czoyOiJzcCI7/ZDowLjM4MzUwMDAwMDAw/MDAwMDAwNzU0OTUxNjU2/NzQ1MTA2NDQ3NDg4MDY5/NTM0MzAxNzU3ODEyNTt9/aToxO3M6MzI6IjQwMTVj/NTk0MjZhYzE5ZTY1Mjlm/YzJjOTA2ODI0N2I0Ijt9/9ea5cf8a40/PassiveSkillScreenAscendancyButton.png
CF-Cache-Status: HIT
Expires: Tue, 19 Mar 2019 22:24:02 GMT
Cache-Control: public, max-age=86400
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
CF-RAY: 4b9a9d520fd8942d-NRT

function getFile on PassiveTree are save HTTP status 301 body to image file. because unsupported for 301. https://github.com/Openarl/PathOfBuilding/blob/master/Classes/PassiveTree.lua#L21

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.12.2</center>
</body>
</html>

Solution is to use "easy: setopt_followlocation (true)"

ashemedai commented 5 years ago

I think this might be happening with the current version of the client as well.

Currently downloading BlightedNotableFrameAllocated.png, BlightedNotableFrameCanAllocate.png, and BlightedNotableFrameUnallocated.png which all give warnings like Warning: 'C:\ProgramData\Path of Building\TreeData/BlightedNotableFrameCanAllocate.png': unsupported image file format