Skip to content
This repository was archived by the owner on Aug 28, 2023. It is now read-only.

Conversation

ftomza
Copy link

@ftomza ftomza commented Apr 23, 2019

Exceptions:

TypeError: 'NoneType' object is not iterable
(2 additional frame(s) were not displayed)
...
  File "sentry/api/base.py", line 90, in handle_exception
    response = super(Endpoint, self).handle_exception(exc)
  File "sentry/api/base.py", line 190, in dispatch
    response = handler(request, *args, **kwargs)
  File "sentry/api/endpoints/project_plugin_details.py", line 129, in put
    initial=request.DATA,
TypeError: 'NoneType' object is not iterable
(6 additional frame(s) were not displayed)
...
  File "sentry/api/endpoints/project_plugin_details.py", line 185, in put
    context = serialize(plugin, request.user, PluginWithConfigSerializer(project))
  File "sentry/api/serializers/base.py", line 17, in serialize
    return serialize([objects], user=user, serializer=serializer, **kwargs)[0]
  File "sentry/api/serializers/base.py", line 38, in serialize
    return [serializer(o, attrs=attrs.get(o, {}), user=user, **kwargs) for o in objects]
  File "sentry/api/serializers/base.py", line 53, in __call__
    return self.serialize(obj, attrs, user, **kwargs)
  File "sentry/api/serializers/models/plugin.py", line 86, in serialize
    for c in obj.get_config(project=self.project, user=user, add_additial_fields=True)

These errors associated with changes in the data schema YouTrack, model Projects. Before the change was:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<projects></projects>

In version 2019.1 it became:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<projectShorts></projectShorts>

The plug-in has functions for obtaining pre-arranged enumerations, but depending on the installation and its localization, they have different names. For example, in the installation en-en 'Types', and in the installation ru-ru 'Типы'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant