Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
2.6 kB
3
Indexable
Never
10.233.92.90 - kkrasowski [07/Mar/2022:14:26:56 +0000] "OPTIONS /v1/recommendations/ HTTP/1.1" "200" 4908 "cms" "python-requests/2.26.0" "-" "zpr-recommendations-domain:5000" "0.008434" X-Mobile-Agent: "-"
INFO:zpr_recommendations_domain.outbound_ports.articles.rest:Błędna odpowiedź z serwera: http://zpr-articles-rest:5000/v1/articles/?page_uid=pa-AvXM-ko3V-a7Vx&published=1&sponsored=0&limit=100&order=-pub_date
ERROR:zpr_recommendations_domain.wsgi:Exception on /v1/recommendations/rc-ZWK6-1ELF-4CMq/ [PUT]
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python3.8/site-packages/zpr_flask/decorators.py", line 28, in decorated_function
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/zpr_storages/transactions.py", line 19, in __call__
    result = self.__func(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/flask_restful/__init__.py", line 467, in wrapper
    resp = resource(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/flask/views.py", line 89, in view
    return self.dispatch_request(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/flask_restful/__init__.py", line 582, in dispatch_request
    resp = meth(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/zpr_flask/generic.py", line 146, in put
    pk = self._method(pk, data, username)
  File "/app/zpr_recommendations_domain/commands.py", line 278, in __call__
    pages_items = self._update_pages_items(obj)
  File "/app/zpr_recommendations_domain/commands.py", line 161, in _update_pages_items
    articles = articles_adapter.get_articles_for_page(page.page_uid)
  File "/app/zpr_recommendations_domain/outbound_ports/articles/rest.py", line 56, in get_articles_for_page
    return self._get_object_data(path, True)
  File "/app/zpr_recommendations_domain/outbound_ports/articles/rest.py", line 61, in _get_object_data
    response = self._make_get_request(url, **auth_kwargs)
  File "/app/zpr_recommendations_domain/outbound_ports/articles/rest.py", line 89, in _make_get_request
    raise DomainCommunicationError(response.text)
zpr_recommendations_domain.exceptions.DomainCommunicationError: {"error":"RequestError(400, 'index_closed_exception', 'closed')","event_id":"d75ee17ebe9048c9bc00bf72954e5fa7"}