#7 Error while updating isp informations

Open
opened 9 years ago by loconox · 4 comments

Hi,

I get an error 500 while trying to update isp's informations. I've tried to reproduce the issue on my own machine without success. Everything seems to work well. The resource is isp Arcane, id 59 Here is my walkthrough :

Hi, I get an error 500 while trying to update isp's informations. I've tried to reproduce the issue on my own machine without success. Everything seems to work well. The resource is isp Arcane, id 59 Here is my walkthrough : * creating a token * opening the url http://db.ffdn.org/isp/59/edit * setting json url to http://www.arcane.bzh/isp.json * clicking on next * getting a 500
sebian commented 8 years ago
Owner

Hi here!

Sorry for the delay on this one… Your isp file seems fine indeed.

❯ curl http://www.arcane.bzh/isp.json
{
    "name": "Arcane",
    "email": "contact@jeremielibeau.fr",
    "memberCount": 4,
    "subscriberCount": 0,
    "coveredAreas": [
        {
            "technologies": ["dsl", "wifi", "vpn"],
            "name": "Caulnes"
        }
    ],
    "version": 0.1,
    "progressStatus": 3
}

@loconox, do not hesitate to ping me, in order to take a look on server logs.

Hi here! Sorry for the delay on this one… Your isp file seems fine indeed. ``` ❯ curl http://www.arcane.bzh/isp.json { "name": "Arcane", "email": "contact@jeremielibeau.fr", "memberCount": 4, "subscriberCount": 0, "coveredAreas": [ { "technologies": ["dsl", "wifi", "vpn"], "name": "Caulnes" } ], "version": 0.1, "progressStatus": 3 } ``` @loconox, do not hesitate to ping me, in order to take a look on server logs.
sebian commented 8 years ago
Owner

Thanks for the test! It's a utf8 issue…

Exception on /isp/59/edit [POST]

Traceback (most recent call last):
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/srv/www/ffdn.org/db/ffdn-db/ffdnispdb/views.py", line 202, in edit_project
    db.session.commit()
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 149, in do
    return getattr(self.registry(), name)(*args, **kwargs)
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 721, in commit
    self.transaction.commit()
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 361, in commit
    self.session.dispatch.after_commit(self.session)
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/event.py", line 372, in __call__
    fn(*args, **kw)
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 170, in session_signal_after_commit
    models_committed.send(session.app, changes=d.values())
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/srv/www/ffdn.org/db/ffdn-db/ffdnispdb/models.py", line 294, in _after_flush
    cls.update_document(writer, model)
  File "/srv/www/ffdn.org/db/ffdn-db/ffdnispdb/models.py", line 277, in update_document
    writer.update_document(**kw)
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/whoosh/writing.py", line 477, in update_document
    self.add_document(**fields)
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/whoosh/writing.py", line 750, in add_document
    for tbytes, freq, weight, vbytes in items:
  File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/whoosh/fields.py", line 166, in index
    raise ValueError("%r is not unicode or sequence" % value)
ValueError: '' is not unicode or sequence
Thanks for the test! It's a utf8 issue… ``` Exception on /isp/59/edit [POST] Traceback (most recent call last): File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/srv/www/ffdn.org/db/ffdn-db/ffdnispdb/views.py", line 202, in edit_project db.session.commit() File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 149, in do return getattr(self.registry(), name)(*args, **kwargs) File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 721, in commit self.transaction.commit() File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 361, in commit self.session.dispatch.after_commit(self.session) File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/sqlalchemy/event.py", line 372, in __call__ fn(*args, **kw) File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 170, in session_signal_after_commit models_committed.send(session.app, changes=d.values()) File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/blinker/base.py", line 267, in send for receiver in self.receivers_for(sender)] File "/srv/www/ffdn.org/db/ffdn-db/ffdnispdb/models.py", line 294, in _after_flush cls.update_document(writer, model) File "/srv/www/ffdn.org/db/ffdn-db/ffdnispdb/models.py", line 277, in update_document writer.update_document(**kw) File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/whoosh/writing.py", line 477, in update_document self.add_document(**fields) File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/whoosh/writing.py", line 750, in add_document for tbytes, freq, weight, vbytes in items: File "/srv/www/ffdn.org/db/env/local/lib/python2.7/site-packages/whoosh/fields.py", line 166, in index raise ValueError("%r is not unicode or sequence" % value) ValueError: '' is not unicode or sequence ```
pitchum commented 7 years ago
Collaborator

Symptoms look like those of issue #13 and the problem may have been fixed with commit 0f6c1645d5 too.

Jérémie, can you try again now?

Symptoms look like those of issue #13 and the problem may have been fixed with commit 0f6c1645d5547ca77fac170958360598a4e6e4ad too. Jérémie, can you try again now?
pitchum commented 7 years ago
Collaborator

Woops, closed by mistake. Reopening.

Woops, closed by mistake. Reopening.
Sign in to join this conversation.
No Label
bug
No Milestone
No assignee
3 Participants
Loading...
Cancel
Save
There is no content yet.