fedn icon indicating copy to clipboard operation
fedn copied to clipboard

TypeError TypeError: send_file() got an unexpected keyword argument 'attachment_filename'

Open aitmlouk opened this issue 2 years ago • 2 comments

Severity

  • [ ] Critical/Blocker (select if the issue makes the application unusable or causes serious data loss)
  • [ ] High (select if the issue affects a major feature and there is no workaround or the available workaround is very complex)
  • [x] Medium (select if the issue affects a minor feature or affects a major feature but has an easy enough workaround to not cause any major inconvenience)
  • [ ] Low (select if the issue doesn't significantly affect the user experience, like minor visual bugs)

Describe the bug Cannot download the config file (client.yaml) from UI

Environment:

  • OS: [Linux]
  • Version: [Ubuntu 20]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Reproduction Steps Steps to reproduce the behavior:

  1. Go to '/network'
  2. Click on 'download client config'
  3. See error 'TypeError TypeError: send_file() got an unexpected keyword argument 'attachment_filename'

Expected behavior Download client.yaml

Screenshots If applicable, add screenshots to help explain your problem.

Contact Details An e-mail address in case we need to contact you for further details regarding this issue.

aitmlouk avatar Oct 11 '22 14:10 aitmlouk

I can confirm this behavior (develop).

ahellander avatar Oct 14 '22 13:10 ahellander

This issue affects users on Python 3.10, it is due to an update in the Flask API. Fix in PR #435

ahellander avatar Oct 17 '22 10:10 ahellander