-
-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] create asset api returns 500 error but still creates asset #2190
Comments
@jay1459, thank you for bringing up this one. Let me test and play around with the endpoint. If necessary, I'll apply fixes and/or update the API documentation on how to use In the meantime, feel free to try to set the content type to form-data. |
Thank you so much for the speed of this. Thats very appreciated.
…Sent from my iPhone
On 3 Jan 2025, at 19:30, Nico Miguelino ***@***.***> wrote:
@jay1459<https://github.com/jay1459>, I just opened a pull request (#2191<#2191>). One it gets merged, you can upgrade Anthias and see the fix take effect.
—
Reply to this email directly, view it on GitHub<#2190 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAKIZ7R4HB3BATJ6VWAZFQ32I3QM5AVCNFSM6AAAAABURNMB6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRZG4YTKMZQGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@jay1459, the fix was already deployed. Feel free to run the installer script again if you wish to update your Anthias instance. |
@jay1459, also feel free to re-open this issue if you still encounter the issue. |
Describe the bug
Using the create asset api, a 500 error is returned
Response data: {
error: "'<' not supported between instances of 'str' and 'datetime.datetime'"
}
Response status: 500
To Reproduce
Steps to reproduce the behavior:
Request data: {"ext":".jpg","name":"WP_20140120_18_31_24_Pro.jpg","uri":"/data/screenly_assets/845bb3ebc091504283ab189c40b4a416.tmp","start_date":"2025-01-03T09:57:48.753Z","end_date":"2026-01-03T09:57:48.753Z","duration":20,"mimetype":"image/jpeg","is_enabled":true,"is_processing":true,"nocache":false,"play_order":0,"skip_asset_check":true}
Response data: {
error: "'<' not supported between instances of 'str' and 'datetime.datetime'"
}
Response status: 500
Response headers: {
server: 'nginx',
date: 'Fri, 03 Jan 2025 09:57:48 GMT',
'content-type': 'application/json',
'content-length': '80',
connection: 'keep-alive',
vary: 'Accept',
allow: 'GET, POST, HEAD, OPTIONS',
'x-frame-options': 'DENY',
'x-content-type-options': 'nosniff',
'referrer-policy': 'same-origin',
'cross-origin-opener-policy': 'same-origin'
}
Expected behavior
this should return 200 successful
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
despite the error, the asset is available, i am currently ignoring this error in my code as a workaround, but would be useful to fix.
The text was updated successfully, but these errors were encountered: