Skip to content

Internal error saving project settings #1347

@dbenamy

Description

@dbenamy

On https://new-sentry.stripe.com/org/proj/settings/, when I try to save I get an internal error with the logs showing:

Traceback (most recent call last):
  File ".../django/core/handlers/base.py", line 113, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File ".../django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File ".../django/utils/decorators.py", line 25, in _wrapper
    return bound_func(*args, **kwargs)
  File ".../django/utils/decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File ".../django/utils/decorators.py", line 21, in bound_func
    return func(self, *args2, **kwargs2)
  File ".../sentry/web/frontend/base.py", line 154, in dispatch
    return self.handle(request, *args, **kwargs)
  File ".../sentry/web/frontend/project_settings.py", line 185, in handle
    if form.is_valid():
  File ".../django/forms/forms.py", line 126, in is_valid
    return self.is_bound and not bool(self.errors)
  File ".../django/forms/forms.py", line 117, in _get_errors
    self.full_clean()
  File ".../django/forms/forms.py", line 274, in full_clean
    self._post_clean()
  File ".../django/forms/models.py", line 315, in _post_clean
    self.instance = construct_instance(self, self.instance, opts.fields, opts.exclude)
  File ".../django/forms/models.py", line 52, in construct_instance
    f.save_form_data(instance, cleaned_data[f.name])
  File ".../django/db/models/fields/__init__.py", line 466, in save_form_data
    setattr(instance, self.name, data)
  File ".../django/db/models/fields/related.py", line 401, in __set__
    (instance._meta.object_name, self.field.name))
ValueError: Cannot assign None: "Project.team" does not allow null values.

Rev c14b7a9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions