Page MenuHomeSoftware Heritage

NPM package angular-ts-manage fails to be properly loaded
Open, HighPublic

Event Timeline

douardda triaged this task as High priority.Jul 1 2020, 10:05 AM
douardda created this task.
douardda added a comment.EditedJul 1 2020, 10:10 AM

This origin (and others) also fails to be mirrored with errors like:

2020-07-01T08:08:31.034527330Z swh_storage.1.w34ostw2fj07@bespin    | ERROR:root:unsupported Unicode escape sequence
2020-07-01T08:08:31.034547035Z swh_storage.1.w34ostw2fj07@bespin    | DETAIL:  \u0000 cannot be converted to text.
2020-07-01T08:08:31.034550252Z swh_storage.1.w34ostw2fj07@bespin    | CONTEXT:  JSON data, line 1: ...nfig-factory", "version": "0.3.0", "description":...
2020-07-01T08:08:31.034552607Z swh_storage.1.w34ostw2fj07@bespin    | COPY tmp_revision, line 10, column metadata: "{"package_source": {"name": "config-factory", "version": "0.3.0", "filename": "config-factory-0.3.0...."
2020-07-01T08:08:31.034555308Z swh_storage.1.w34ostw2fj07@bespin    | Traceback (most recent call last):
2020-07-01T08:08:31.034557333Z swh_storage.1.w34ostw2fj07@bespin    |   File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request
2020-07-01T08:08:31.034559316Z swh_storage.1.w34ostw2fj07@bespin    |     rv = self.dispatch_request()
2020-07-01T08:08:31.034561208Z swh_storage.1.w34ostw2fj07@bespin    |   File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request
2020-07-01T08:08:31.034563201Z swh_storage.1.w34ostw2fj07@bespin    |     return self.view_functions[rule.endpoint](**req.view_args)
2020-07-01T08:08:31.034565055Z swh_storage.1.w34ostw2fj07@bespin    |   File "<decorator-gen-42>", line 2, in revision_add
2020-07-01T08:08:31.034567410Z swh_storage.1.w34ostw2fj07@bespin    |   File "/usr/lib/python3/dist-packages/swh/core/api/negotiation.py", line 148, in _negotiate
2020-07-01T08:08:31.034569427Z swh_storage.1.w34ostw2fj07@bespin    |     return f.negotiator(*args, **kwargs)
2020-07-01T08:08:31.034571284Z swh_storage.1.w34ostw2fj07@bespin    |   File "/usr/lib/python3/dist-packages/swh/core/api/negotiation.py", line 82, in __call__
2020-07-01T08:08:31.034573266Z swh_storage.1.w34ostw2fj07@bespin    |     result = self.func(*args, **kwargs)
2020-07-01T08:08:31.034575139Z swh_storage.1.w34ostw2fj07@bespin    |   File "/usr/lib/python3/dist-packages/swh/core/api/__init__.py", line 453, in _f
2020-07-01T08:08:31.034577163Z swh_storage.1.w34ostw2fj07@bespin    |     return obj_meth(**kw)
2020-07-01T08:08:31.034578968Z swh_storage.1.w34ostw2fj07@bespin    |   File "/usr/lib/python3/dist-packages/swh/storage/metrics.py", line 24, in d
2020-07-01T08:08:31.034580961Z swh_storage.1.w34ostw2fj07@bespin    |     return f(*a, **kw)
2020-07-01T08:08:31.034582971Z swh_storage.1.w34ostw2fj07@bespin    |   File "/usr/lib/python3/dist-packages/swh/storage/metrics.py", line 77, in d
2020-07-01T08:08:31.034585007Z swh_storage.1.w34ostw2fj07@bespin    |     r = f(*a, **kw)
2020-07-01T08:08:31.034586849Z swh_storage.1.w34ostw2fj07@bespin    |   File "/usr/lib/python3/dist-packages/swh/core/db/common.py", line 62, in _meth
2020-07-01T08:08:31.034588741Z swh_storage.1.w34ostw2fj07@bespin    |     return meth(self, *args, db=db, cur=cur, **kwargs)
2020-07-01T08:08:31.034597020Z swh_storage.1.w34ostw2fj07@bespin    |   File "/usr/lib/python3/dist-packages/swh/storage/storage.py", line 575, in revision_add
2020-07-01T08:08:31.034599212Z swh_storage.1.w34ostw2fj07@bespin    |     lambda rev: parents_filtered.extend(rev["parents"]),
2020-07-01T08:08:31.034601077Z swh_storage.1.w34ostw2fj07@bespin    |   File "/usr/lib/python3/dist-packages/swh/core/db/__init__.py", line 213, in copy_to
2020-07-01T08:08:31.034602968Z swh_storage.1.w34ostw2fj07@bespin    |     raise exc_info[1].with_traceback(exc_info[2])
2020-07-01T08:08:31.034604780Z swh_storage.1.w34ostw2fj07@bespin    |   File "/usr/lib/python3/dist-packages/swh/core/db/__init__.py", line 175, in writer
2020-07-01T08:08:31.034606696Z swh_storage.1.w34ostw2fj07@bespin    |     "COPY %s (%s) FROM STDIN CSV" % (tblname, ", ".join(columns)), f
2020-07-01T08:08:31.034608754Z swh_storage.1.w34ostw2fj07@bespin    | psycopg2.errors.UntranslatableCharacter: unsupported Unicode escape sequence
2020-07-01T08:08:31.034611057Z swh_storage.1.w34ostw2fj07@bespin    | DETAIL:  \u0000 cannot be converted to text.
2020-07-01T08:08:31.034612976Z swh_storage.1.w34ostw2fj07@bespin    | CONTEXT:  JSON data, line 1: ...nfig-factory", "version": "0.3.0", "description":...
2020-07-01T08:08:31.034615611Z swh_storage.1.w34ostw2fj07@bespin    | COPY tmp_revision, line 10, column metadata: "{"package_source": {"name": "config-factory", "version": "0.3.0", "filename": "config-factory-0.3.0...."
2020-07-01T08:08:31.034618053Z swh_storage.1.w34ostw2fj07@bespin    |
ardumont updated the task description. (Show Details)Jul 1 2020, 10:12 AM

I'm afraid the only way to properly solve this is to wait until we stop writing metadata to the revision table