InvenTree: DataError at /accounts/microsoft/login/callback/ - value too long for type character varying(200)
Please verify that this bug has NOT been raised before.
- I checked and didn’t find a similar issue
Describe the bug*
I want to log in via the social provider microsoft graph. After my initial login, I get the following django error:
value too long for type character varying(200)
| Django Version: | 3.2.18 |
|---|---|
| Exception Type: | DataError |
| Exception Value: | value too long for type character varying(200) |
| Exception Location: | /home/inventree/env/lib/python3.9/site-packages/django/db/backends/utils.py, line 84, in _execute |
Steps to Reproduce
- Login with admin user using normal login
- Connect account with social provider using settings -> account
- Logout
- Login using Microsoft Graph social provider
- Exception after redirect from Microsoft
Expected behaviour
Login via social provider succeeds
Deployment Method
- Docker
- Bare metal
Version Information
Version Information:
InvenTree-Version: 0.11.2 Django Version: 3.2.18 Commit Hash: 4868194a0 Commit Date: 25/05/2023 Database: postgresql Debug-Mode: True Deployed using Docker: False Active plugins: [{‘name’: ‘InvenTreeBarcode’, ‘slug’: ‘inventreebarcode’, ‘version’: ‘2.0.0’}, {‘name’: ‘InvenTreeCoreNotificationsPlugin’, ‘slug’: ‘inventreecorenotificationsplugin’, ‘version’: ‘1.0.0’}, {‘name’: ‘CupsLabels’, ‘slug’: ‘cups’, ‘version’: ‘0.1.0’}]
Please verify if you can reproduce this bug on the demo site.
- I can reproduce this bug on the demo site.
Relevant log output
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 22 (12 by maintainers)
Huh, interesting. It appears that the reason that you don’t see the error message in the admin panel is because the creation of the error message itself is what is throwing the exception here.
I’ve made a new error for that specifically - https://github.com/inventree/InvenTree/issues/5038
Your particular exception is coming from the allauth lib: