Skip to contentSkip to conversation

Reseive a HTTP Error 500 when send error report

DISCUSSION Thomas Perrot 2 participants 6 messages Apr 16, 2025 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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/pq28

Could 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]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

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#n25

Quoted 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/pq28

Could 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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

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 deployed

I 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 Perrot

Quoted 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#n25

Quoted 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/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
#5 lore raw
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 deployed

I 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 Perrot

Quoted 29 lines

Kind regards,
Thomas Perrot

Quoted 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#n25

Quoted 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/pq28

Could you please advise me on how to resolve this issue?

Kind regards,
Thomas Perrot

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw
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 :)