stencila/hub

ValueError: Unable to parse source address

sentry-io opened this issue ยท 1 comments

This occurred when a user put an invalid URL in the sources/new/github form. When the form was POSTed the "Unable to parse address" exception is raised. Instead, there should be a validation error on the URL field.

Sentry Issue: HUB-13Y

ValueError: Unable to parse source address "XXX"
  File "rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "projects/api/views/sources.py", line 230, in create
    address = Source.coerce_address(url)
  File "projects/models/sources.py", line 211, in coerce_address
    raise ValueError('Unable to parse source address "{}"'.format(address))

๐ŸŽ‰ This issue has been resolved in version 4.24.1 ๐ŸŽ‰

The release is available on GitHub release

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€