Skip to content
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

build fails in test_route with PlainTextResponse(url) #663

Closed
WolfgangFahl opened this issue Mar 20, 2023 · 1 comment
Closed

build fails in test_route with PlainTextResponse(url) #663

WolfgangFahl opened this issue Mar 20, 2023 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@WolfgangFahl
Copy link
Collaborator

File "/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/justpy/justpy/tests/test_route.py", line 23, in urlFor
return PlainTextResponse(url)
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/site-packages/starlette/responses.py", line 55, in init
self.body = self.render(content)
^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/site-packages/starlette/responses.py", line 63, in render
return content.encode(self.charset)
^^^^^^^^^^^^^^
AttributeError: 'URL' object has no attribute 'encode'

@WolfgangFahl WolfgangFahl added the bug Something isn't working label Mar 20, 2023
@WolfgangFahl WolfgangFahl added this to the 0.12 milestone Mar 20, 2023
@WolfgangFahl WolfgangFahl self-assigned this Mar 20, 2023
@WolfgangFahl
Copy link
Collaborator Author

use str() to avoid problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant