Closed vorpal-buildbot closed 6 years ago
Steps to reproduce:
Expected:
Actual:
Monkey-
is much bigger.Another error with new images endpoint:
[Errno 2] No such file or directory: '/home/discord/decksite/decksite/./images/cavern-of-souls_delver-of-secrets.jpg'
Reported on decksite by silasary```
--------------------------------------------------------------------------------
Request Method: GET
Path: /image/Cavern of Souls|Delver of Secrets/?
Cookies: {'__cfduid': 'd073f84486cb05895e3ac05685e9707851514248970', 'hide_intro': 'True', 'session': '.eJx1UNtOwkAQ_Zd5bgzb7pbCo6SBYFSCgFBjmqU7LSu9sbtVKuHf3ZIgiYmPM2fOnMsJ4hpVwUssDQyNatABLgpZXgchdVIpEUsBQyCMer4XUJcy0vcocwNw4H8kr7IMRSegq_LygQx8BwqTVXGjUZW8QMvVMueaq9YyKt6YnRtrw02H0H20qNkU_edg3riHB5mOR-Eq7XvNbOyVt3tT7dE6PgFPEtT6OkO4epy9tiMehnygd_5y6eZ6HW4nUb1azF8sH4-1VKhjbsMT5hF_wGg_uGPED1xGb3jXh9-jQa_ngMLUrna_IuKTLL-i73Y7JYXBWbJ-2mwPuvg4btRkklkRW2Bt07zZpmzLMu2CZo3MhYZ3By5vYtN2J3CPXKGCswN_SzNcZWhdlk2en38AGIuM0w.DmMIdw.d9kMxHo_kkW21YO-4iY_jUptCtQ', '_ga': 'GA1.2.224319916.1532064855', '_gid': 'GA1.2.29493083.1535211255', '_gat_gtag_UA_109131120_1': '1'}
Endpoint: image
View Args: {'c': 'Cavern of Souls|Delver of Secrets'}
Person: 154363842451734528
Referrer: None
Request Data: {}
Host: pennydreadfulmagic.com
Accept-Encoding: gzip
Cf-Ipcountry: AU
X-Forwarded-For: 2001:8003:453d:b400:5161:ca86:bf60:3a99, 162.158.2.24
Cf-Ray: 44ff1f362e931d86-MEL
X-Forwarded-Proto: https
Cf-Visitor: {"scheme":"https"}
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Accept: /
Accept-Language: en-AU,en-GB;q=0.8,en-US;q=0.5,en;q=0.3
Cookie: __cfduid=d073f84486cb05895e3ac05685e9707851514248970; hide_intro=True; session=.eJx1UNtOwkAQ_Zd5bgzb7pbCo6SBYFSCgFBjmqU7LSu9sbtVKuHf3ZIgiYmPM2fOnMsJ4hpVwUssDQyNatABLgpZXgchdVIpEUsBQyCMer4XUJcy0vcocwNw4H8kr7IMRSegq_LygQx8BwqTVXGjUZW8QMvVMueaq9YyKt6YnRtrw02H0H20qNkU_edg3riHB5mOR-Eq7XvNbOyVt3tT7dE6PgFPEtT6OkO4epy9tiMehnygd_5y6eZ6HW4nUb1azF8sH4-1VKhjbsMT5hF_wGg_uGPED1xGb3jXh9-jQa_ngMLUrna_IuKTLL-i73Y7JYXBWbJ-2mwPuvg4btRkklkRW2Bt07zZpmzLMu2CZo3MhYZ3By5vYtN2J3CPXKGCswN_SzNcZWhdlk2en38AGIuM0w.DmMIdw.d9kMxHo_kkW21YO-4iY_jUptCtQ; _ga=GA1.2.224319916.1532064855; _gid=GA1.2.29493083.1535211255; _gat_gtag_UA_109131120_1=1
Cf-Connecting-Ip: 2001:8003:453d:b400:5161:ca86:bf60:3a99
X-Forwarded-Host: pennydreadfulmagic.com
X-Forwarded-Server: pennydreadfulmagic.com
Connection: Keep-Alive
--------------------------------------------------------------------------------
FileNotFoundError
Stack Trace:
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2309, in call
return self.wsgi_app(environ, start_response)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/discord/.local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/discord/.local/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "./decksite/main.py", line 372, in image
return send_file(image_fetcher.determine_filepath(requested_cards))
File "/home/discord/.local/lib/python3.6/site-packages/flask/helpers.py", line 588, in send_file
file = open(filename, 'rb')
I fixed all of this.
Reported on Discord by bakert#2193