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

flask-connexion-rest-part-4 incompatible with newer package versions #104

Open
josvos opened this issue Mar 9, 2020 · 4 comments
Open

flask-connexion-rest-part-4 incompatible with newer package versions #104

josvos opened this issue Mar 9, 2020 · 4 comments

Comments

@josvos
Copy link

@josvos josvos commented Mar 9, 2020

I'm trying to port flask-connexion-rest-part-4 to the latest versions of all package dependencies and after fixing a few incompatibilities (that I can share) the server is running, but when accessing just "/" it fails with this error:

ValueError: Invalid fields for <NotePersonSchema(many=False)>: {'notes'}.

Any suggestions on what's causing this?

@dbader
Copy link
Member

@dbader dbader commented Mar 9, 2020

Pinging @writeson here since he's the author of that series :)

@writeson
Copy link
Contributor

@writeson writeson commented Mar 9, 2020

Hi Jos,
I guess I need some more context about what you're doing so I can try to replicate the problem you're seeing and suggest a course of action. Can you give me more information?
Thanks!
Doug

@josvos
Copy link
Author

@josvos josvos commented Mar 9, 2020

Hi, will replicate it in an unmodified version (in my version, I removed the Flask-SQLAlchemy dependency and use bare SQLAlchemy, but as this is working fine with the old packages, I suppose this is not causing the problem). Stay tuned...

@josvos
Copy link
Author

@josvos josvos commented Mar 9, 2020

OK. attached my package list (requirements01.txt) and a patch (patch01.txt) as the "strict" keyword parameter for ModelSchema is implicit now and invalid to specify. When you make a virtualenv with these packages, apply the pacth to the code (part-4), run "python3 build_database.py; python3 server.py", just visiting http://localhost:5000/ produces the error. I'm using Python 3.7.5.

requirements01.txt
patch01.txt

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.