Closed tinnus-napbus closed 2 years ago
ok I |commit
ed latest desks from urbit github rather than just using multi.pill but I still get the same thing:
Internal Server Error
There was an error while handling the request for /docket/upload.
/app/docket/hoon:<[514 20].[514 44]>
/app/docket/hoon:<[514 7].[549 9]>
/app/docket/hoon:<[513 7].[549 9]>
/app/docket/hoon:<[512 5].[584 39]>
/app/docket/hoon:<[509 5].[584 39]>
/app/docket/hoon:<[508 5].[584 39]>
/app/docket/hoon:<[422 18].[422 31]>
/app/docket/hoon:<[420 7].[423 9]>
/app/docket/hoon:<[420 3].[627 5]>
/app/docket/hoon:<[418 3].[627 5]>
/app/docket/hoon:<[417 3].[627 5]>
/app/docket/hoon:<[412 3].[627 5]>
/app/docket/hoon:<[405 3].[627 5]>
/app/docket/hoon:<[403 3].[627 5]>
/app/docket/hoon:<[85 7].[85 38]>
/app/docket/hoon:<[84 7].[85 38]>
/app/docket/hoon:<[75 5].[86 7]>
/app/docket/hoon:<[74 3].[87 15]>
/app/docket/hoon:<[73 3].[112 5]>
/app/docket/hoon:<[72 3].[112 5]>
/sys/vane/gall/hoon:<[1.372 9].[1.372 37]>
That looks like it's failing here:
Which is very strange, because desk
at that point has already gotten sanity-checked:
Of course, if it's absent from the request entirely, then that's not going to get hit, and desk will remain the empty name, which will indeed crash.
I cannot reproduce this locally, so if you don't mind, you could try putting the following before line 514 (after the =;
) in /=garden=/app/docket.hoon
:
~| [%glob-upload desk=desk]
~? !=(~ err) errors=err
Commit that, then try again and see what output that gives.
Might also be valuable to go into the browser console's networking tab, and try to see if the outgoing POST request (upon clicking the glob button) does or does not contain something along the lines of:
-----------------------------38147362104607528703095340636
Content-Disposition: form-data; name="desk"
yourdeskname
-----------------------------38147362104607528703095340636
[big ol' file contents]
the error I get with those added lines is:
errors=<|failed to parse submitted data|>
I checked the request payload and it does indeed proceed like:
-----------------------------568509388155302009861853530
Content-Disposition: form-data; name="desk"
hello
-----------------------------568509388155302009861853530
Content-Disposition: form-data; name="glob"; filename="hello/index.html"
Content-Type: text/html
<!DOCTYPE html>
<html>
<head>
<style>
div {text-align:center}
</style>
</head>
<title>Hello World</title>
<body>
<div>
<h1>Hello World!</h1>
<img src="img/pot.svg" alt="pot" width="219" height="196">
</div>
</body>
</html>
-----------------------------568509388155302009861853530
Content-Disposition: form-data; name="glob"; filename="hello/img/pot.svg"
Content-Type: image/svg+xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
id="Layer_1"
xml:space="preserve"
overflow="visible"
viewBox="0 0 250 250"
version="1.1"
[.......and so on...........]
Describe the bug Docket globulator fails with the following error after hitting
glob!
:Additionally, it spits out these headers in the dojo:
To Reproduce Steps to reproduce the behavior:
Expected behavior should upload glob successfully
Operating context