Reseive a HTTP Error 500 when send error report
Hello,
I would like to share the results of my CI jobs, so I am trying to send error reports using the send-error-report command, but they are receiving an HTTP Error 500:
https://termbin.com/pq28
Could you please advise me on how to resolve this issue?
Kind regards,
Thomas Perrot
Signature · 3 lines
Thomas Perrot, Bootlin Embedded Linux and kernel engineering https://bootlin.com
Rendering[1] the error message shows a bit more details. The error seems to come from here[2].
1. You could send a patch to fix the error (I think nowadays it should be "urllib.parse.unquote_plus"), and wait till it's deployed
2. It's a guess: have you changed the "version" attribute of the send-error-script? The error indicates that the user agent is "send-error-report/0.4", which seems to trigger the outdated codepath, and the user-agent is composed using the version variable of this script, which is 0.3, in master-next too[3].
[1]: https://sarvari.me/deleteme.html (temporary link)
[2]: https://git.yoctoproject.org/error-report-web/tree/Post/views.py#n60
[3]:
https://git.openembedded.org/openembedded-core/tree/scripts/send-error-report?h=master-next#n25
Quoted 21 lines · Thomas Perrot via lists.yoctoproject.org
Hello,
I would like to share the results of my CI jobs, so I am trying to send error reports using the send-error-report command, but they are receiving an HTTP Error 500:
https://termbin.com/pq28Could you please advise me on how to resolve this issue?
Kind regards,
Thomas Perrot-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#65184): https://lists.yoctoproject.org/g/yocto/message/65184
Mute This Topic: https://lists.yoctoproject.org/mt/112292345/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 5 lines
2. It's a guess: have you changed the "version" attribute of the send-error-script? The error indicates that the user agent is "send-error-report/0.4", which seems to trigger the outdated codepath, and the user-agent is composed using the version variable of this script, which is 0.3, in master-next too[3].
Replying to my own question: I just saw your patch, that does change this version. Adapt the web part too, I guess :)
Hello Gyorgi,
Quoted 8 lines · Gyorgy Sarvari
Rendering[1] the error message shows a bit more details. The error seems
to come from here[2].1. You could send a patch to fix the error (I think nowadays it should
be "urllib.parse.unquote_plus"), and wait till it's deployed
I believe I could.
Quoted 6 lines
2. It's a guess: have you changed the "version" attribute of the send-error-script? The error indicates that the user agent is "send-error-report/0.4", which seems to trigger the outdated codepath,
and the user-agent is composed using the version variable of this script, which is 0.3, in master-next too[3].
The user agent is 'send-error/report/0.4' because I applied the following patch on top of the master branch to figure out the error:https://lore.kernel.org/all/[email protected]/
Kind regards,
Thomas Perrot
Quoted 36 lines
[1]: https://sarvari.me/deleteme.html (temporary link)
[2]:
https://git.yoctoproject.org/error-report-web/tree/Post/views.py#n60[3]:
https://git.openembedded.org/openembedded-core/tree/scripts/send-error-report?h=master-next#n25Quoted 26 lines · Thomas Perrot via lists.yoctoproject.org
Hello,
I would like to share the results of my CI jobs, so I am trying to send
error reports using the send-error-report command, but they are receiving an HTTP Error 500:
https://termbin.com/pq28Could you please advise me on how to resolve this issue?
Kind regards,
Thomas Perrot-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#65184):
https://lists.yoctoproject.org/g/yocto/message/65184
Mute This Topic:
https://lists.yoctoproject.org/mt/112292345/6084445
Group Owner: [email protected] Unsubscribe:
https://lists.yoctoproject.org/g/yocto/unsub [[email protected]
]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Thomas Perrot, Bootlin Embedded Linux and kernel engineering https://bootlin.com
Hello Gyorgi,
Quoted 7 lines · Thomas Perrot via lists.yoctoproject.org
Hello Gyorgi,
Quoted 4 lines · Gyorgy Sarvari
Rendering[1] the error message shows a bit more details. The error seems
to come from here[2].
Quoted 6 lines
Quoted 4 lines
1. You could send a patch to fix the error (I think nowadays it should
be "urllib.parse.unquote_plus"), and wait till it's deployedI believe I could.
I submitted a patch:
https://lore.kernel.org/all/[email protected]/
Quoted 8 lines
Quoted 7 lines
2. It's a guess: have you changed the "version" attribute of the send-error-script? The error indicates that the user agent is "send-error-report/0.4", which seems to trigger the outdated codepath,
and the user-agent is composed using the version variable of this script, which is 0.3, in master-next too[3].
Quoted 6 lines
The user agent is 'send-error/report/0.4' because I applied the following patch on top of the master branch to figure out the error:
https://lore.kernel.org/all/[email protected]
/
Following the log when the version is 0.3:
https://termbin.com/8fy1
Kind regards,
Thomas Perrot
Quoted 31 lines
Kind regards,
Thomas PerrotQuoted 27 lines
[1]: https://sarvari.me/deleteme.html (temporary link)
[2]:
https://git.yoctoproject.org/error-report-web/tree/Post/views.py#n60[3]:
https://git.openembedded.org/openembedded-core/tree/scripts/send-error-report?h=master-next#n25Quoted 17 lines · Thomas Perrot via lists.yoctoproject.org
Hello,
I would like to share the results of my CI jobs, so I am trying to
send
error reports using the send-error-report command, but they are receiving an HTTP Error 500:
https://termbin.com/pq28Could you please advise me on how to resolve this issue?
Kind regards,
Thomas Perrot
Signature · 3 lines
Thomas Perrot, Bootlin Embedded Linux and kernel engineering https://bootlin.com
Quoted 25 lines · Thomas Perrot
Hello Gyorgi,
Quoted 7 lines · Thomas Perrot via lists.yoctoproject.org
Hello Gyorgi,
Quoted 4 lines · Gyorgy Sarvari
Rendering[1] the error message shows a bit more details. The error seems
to come from here[2].Quoted 5 lines
Quoted 4 lines
1. You could send a patch to fix the error (I think nowadays it should
be "urllib.parse.unquote_plus"), and wait till it's deployedI believe I could.
I submitted a patch:
https://lore.kernel.org/all/[email protected]/Quoted 6 lines
Quoted 6 lines
2. It's a guess: have you changed the "version" attribute of the send-error-script? The error indicates that the user agent is "send-error-report/0.4", which seems to trigger the outdated codepath,
and the user-agent is composed using the version variable of this script, which is 0.3, in master-next too[3].
Quoted 8 lines
Quoted 6 lines
The user agent is 'send-error/report/0.4' because I applied the following patch on top of the master branch to figure out the error:
https://lore.kernel.org/all/[email protected]
/Following the log when the version is 0.3:
https://termbin.com/8fy1
The data you send has '"failures": []'. So this loop[1] is never entered, and f[2] is never initialized, and this line[3] gets into a bad mood when it is trying to use it.
I guess it could be handled more gracefully (like checking if the failures array is empty), but I also wonder if this script was meant to send error-reports without actual errors.
Instead of guessing blindly and recommending pseudo-random fixes/changes, I guess I will leave it to someone else, who actually knows...
[1]: https://git.yoctoproject.org/error-report-web/tree/Post/parser.py#n71
[2]: https://git.yoctoproject.org/error-report-web/tree/Post/parser.py#n86
[3]: https://git.yoctoproject.org/error-report-web/tree/Post/parser.py#n98
Quoted 32 lines
Kind regards,
Thomas PerrotQuoted 29 lines
Kind regards,
Thomas PerrotQuoted 26 lines
[1]: https://sarvari.me/deleteme.html (temporary link)
[2]:
https://git.yoctoproject.org/error-report-web/tree/Post/views.py#n60[3]:
https://git.openembedded.org/openembedded-core/tree/scripts/send-error-report?h=master-next#n25Quoted 17 lines · Thomas Perrot via lists.yoctoproject.org
Hello,
I would like to share the results of my CI jobs, so I am trying to
send
error reports using the send-error-report command, but they are receiving an HTTP Error 500:
https://termbin.com/pq28Could you please advise me on how to resolve this issue?
Kind regards,
Thomas Perrot