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

Recipe export error "There was an error loading a resource!" in develop #2698

Closed
BstAA opened this issue Oct 26, 2023 · 3 comments · Fixed by #2699
Closed

Recipe export error "There was an error loading a resource!" in develop #2698

BstAA opened this issue Oct 26, 2023 · 3 comments · Fixed by #2699

Comments

@BstAA
Copy link

BstAA commented Oct 26, 2023

Tandoor Version

vabene1111/recipes:develop

Setup

Docker / Docker-Compose

Reverse Proxy

Traefik

Other

No response

Bug description

Lost recipe export functionality in "develop" branch.
Message "There was an error loading a resource!"

Full functional in "latest"

Relevant logs

No response

@smilerz
Copy link
Collaborator

smilerz commented Oct 26, 2023

please share logs after enabling debug

@BstAA
Copy link
Author

BstAA commented Oct 27, 2023

Hope this is the right information

`
tandor-web_recipes-1 | Internal Server Error: /export/
tandor-web_recipes-1 | Traceback (most recent call last):
tandor-web_recipes-1 | File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
tandor-web_recipes-1 | response = get_response(request)
tandor-web_recipes-1 | File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
tandor-web_recipes-1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
tandor-web_recipes-1 | File "/opt/recipes/venv/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
tandor-web_recipes-1 | return view_func(request, *args, **kwargs)
tandor-web_recipes-1 | File "/opt/recipes/cookbook/views/import_export.py", line 125, in export_recipe
tandor-web_recipes-1 | return render(request, 'export.html', {'pk': pk})
tandor-web_recipes-1 | UnboundLocalError: local variable 'pk' referenced before assignment
tandor-web_recipes-1 | Internal Server Error: /export/
tandor-web_recipes-1 | Traceback (most recent call last):
tandor-web_recipes-1 | File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
tandor-web_recipes-1 | response = get_response(request)
tandor-web_recipes-1 | File "/opt/recipes/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
tandor-web_recipes-1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
tandor-web_recipes-1 | File "/opt/recipes/venv/lib/python3.10/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
tandor-web_recipes-1 | return view_func(request, *args, **kwargs)
tandor-web_recipes-1 | File "/opt/recipes/cookbook/views/import_export.py", line 125, in export_recipe
tandor-web_recipes-1 | return render(request, 'export.html', {'pk': pk})
tandor-web_recipes-1 | UnboundLocalError: local variable 'pk' referenced before assignment
tandor-web_recipes-1 | 192.168.208.4 - - [27/Oct/2023:16:17:55 +0200] "POST /export/ HTTP/1.0" 500 70678 "https://rezepte-.de/export/?r=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.69"
tandor-nginx_recipes-1 | 172.18.0.3 - - [27/Oct/2023:14:17:55 +0000] "POST /export/ HTTP/1.1" 500 70678 "https://rezepte-.de/export/?r=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.69" "0.250.18.140"
tandor-nginx_recipes-1 | 172.18.0.3 - - [27/Oct/2023:14:17:55 +0000] "GET /static/webfonts/poppins_latin_700.woff2 HTTP/1.1" 304 0 "https://rezepte-.de/static/themes/tandoor.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.69" "0.250.18.140"
tandor-web_recipes-1 | 192.168.208.4 - - [27/Oct/2023:16:17:55 +0200] "GET /static/webfonts/poppins_latin_700.woff2 HTTP/1.0" 304 0 "https://rezepte-.de/static/themes/tandoor.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.69"

`

By the way: Howto disable nginx access log

@BstAA
Copy link
Author

BstAA commented Oct 28, 2023

Please reopen.
See comment on #2699

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants