Underscore in album name/title does not work #1

Closed
opened 2023-02-15 14:16:07 +02:00 by profitroll · 1 comment
Owner
curl -X 'POST' \
  'https://photos.end-play.xyz/albums?name=duptsia-beta&title=duptsia-beta' \
  -H 'accept: application/json'
Feb 15 14:11:06 minecraft2 bash[2807335]: INFO:     127.0.0.1:43870 - "POST /albums?name=duptsia_beta&title=duptsia_beta HTTP/1.0" 500 Internal Server Error
Feb 15 14:11:06 minecraft2 bash[2807335]: ERROR:    Exception in ASGI application
Feb 15 14:11:06 minecraft2 bash[2807335]: Traceback (most recent call last):
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 419, in run_asgi
Feb 15 14:11:06 minecraft2 bash[2807335]:     result = await app(  # type: ignore[func-returns-value]
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
Feb 15 14:11:06 minecraft2 bash[2807335]:     return await self.app(scope, receive, send)
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/fastapi/applications.py", line 270, in __call__
Feb 15 14:11:06 minecraft2 bash[2807335]:     await super().__call__(scope, receive, send)
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/applications.py", line 124, in __call__
Feb 15 14:11:06 minecraft2 bash[2807335]:     await self.middleware_stack(scope, receive, send)
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in __call__
Feb 15 14:11:06 minecraft2 bash[2807335]:     raise exc
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
Feb 15 14:11:06 minecraft2 bash[2807335]:     await self.app(scope, receive, _send)
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
Feb 15 14:11:06 minecraft2 bash[2807335]:     raise exc
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
Feb 15 14:11:06 minecraft2 bash[2807335]:     await self.app(scope, receive, sender)
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
Feb 15 14:11:06 minecraft2 bash[2807335]:     raise e
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
Feb 15 14:11:06 minecraft2 bash[2807335]:     await self.app(scope, receive, send)
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/routing.py", line 706, in __call__
Feb 15 14:11:06 minecraft2 bash[2807335]:     await route.handle(scope, receive, send)
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
Feb 15 14:11:06 minecraft2 bash[2807335]:     await self.app(scope, receive, send)
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
Feb 15 14:11:06 minecraft2 bash[2807335]:     response = await func(request)
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/fastapi/routing.py", line 254, in app
Feb 15 14:11:06 minecraft2 bash[2807335]:     content = await serialize_response(
Feb 15 14:11:06 minecraft2 bash[2807335]:   File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/fastapi/routing.py", line 140, in serialize_response
Feb 15 14:11:06 minecraft2 bash[2807335]:     raise ValidationError(errors, field.type_)
Feb 15 14:11:06 minecraft2 bash[2807335]: pydantic.error_wrappers.ValidationError: 1 validation error for Album
Feb 15 14:11:06 minecraft2 bash[2807335]: response
Feb 15 14:11:06 minecraft2 bash[2807335]:   value is not a valid dict (type=type_error.dict)
```shell curl -X 'POST' \ 'https://photos.end-play.xyz/albums?name=duptsia-beta&title=duptsia-beta' \ -H 'accept: application/json' ``` ```shell Feb 15 14:11:06 minecraft2 bash[2807335]: INFO: 127.0.0.1:43870 - "POST /albums?name=duptsia_beta&title=duptsia_beta HTTP/1.0" 500 Internal Server Error Feb 15 14:11:06 minecraft2 bash[2807335]: ERROR: Exception in ASGI application Feb 15 14:11:06 minecraft2 bash[2807335]: Traceback (most recent call last): Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 419, in run_asgi Feb 15 14:11:06 minecraft2 bash[2807335]: result = await app( # type: ignore[func-returns-value] Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__ Feb 15 14:11:06 minecraft2 bash[2807335]: return await self.app(scope, receive, send) Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/fastapi/applications.py", line 270, in __call__ Feb 15 14:11:06 minecraft2 bash[2807335]: await super().__call__(scope, receive, send) Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/applications.py", line 124, in __call__ Feb 15 14:11:06 minecraft2 bash[2807335]: await self.middleware_stack(scope, receive, send) Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in __call__ Feb 15 14:11:06 minecraft2 bash[2807335]: raise exc Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__ Feb 15 14:11:06 minecraft2 bash[2807335]: await self.app(scope, receive, _send) Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__ Feb 15 14:11:06 minecraft2 bash[2807335]: raise exc Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__ Feb 15 14:11:06 minecraft2 bash[2807335]: await self.app(scope, receive, sender) Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__ Feb 15 14:11:06 minecraft2 bash[2807335]: raise e Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__ Feb 15 14:11:06 minecraft2 bash[2807335]: await self.app(scope, receive, send) Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/routing.py", line 706, in __call__ Feb 15 14:11:06 minecraft2 bash[2807335]: await route.handle(scope, receive, send) Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle Feb 15 14:11:06 minecraft2 bash[2807335]: await self.app(scope, receive, send) Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/starlette/routing.py", line 66, in app Feb 15 14:11:06 minecraft2 bash[2807335]: response = await func(request) Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/fastapi/routing.py", line 254, in app Feb 15 14:11:06 minecraft2 bash[2807335]: content = await serialize_response( Feb 15 14:11:06 minecraft2 bash[2807335]: File "/home/supermine/Python/PhotosAPI/venv/lib/python3.9/site-packages/fastapi/routing.py", line 140, in serialize_response Feb 15 14:11:06 minecraft2 bash[2807335]: raise ValidationError(errors, field.type_) Feb 15 14:11:06 minecraft2 bash[2807335]: pydantic.error_wrappers.ValidationError: 1 validation error for Album Feb 15 14:11:06 minecraft2 bash[2807335]: response Feb 15 14:11:06 minecraft2 bash[2807335]: value is not a valid dict (type=type_error.dict) ```
profitroll self-assigned this 2023-02-15 14:16:07 +02:00
Author
Owner

Is now fixed. Probably by #cb6d7d9433

Is now fixed. Probably by #cb6d7d9433
profitroll added the
Kind/Bug
label 2023-11-29 16:24:01 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: profitroll/PhotosAPI#1
No description provided.