graphql-python / graphene-django

Build powerful, efficient, and flexible GraphQL APIs with seamless Django integration.
http://docs.graphene-python.org/projects/django/en/latest/
MIT License
4.28k stars 766 forks source link

When passing the empty string to Date Type, it occurs string index out of range error #1528

Closed KaniKim closed 1 month ago

KaniKim commented 2 months ago

Discussed in https://github.com/graphql-python/graphene-django/discussions/1527

Originally posted by **KaniKim** July 4, 2024 스크린샷 2024-07-04 오후 5 56 58 스크린샷 2024-07-04 오후 5 54 50 When I passed a empty string to Date Field, It occurs GraphQL 400 error, with message, "IndexError: string index out of range" And then I found that aniso8601 module occurs this error. Are there any solutions to prevent this one? Well, I can just pass a null to Date, but I think there is more improvement to this packages.