Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: [Resolved] Notification problem

  1. #21

    Re: Notification problem

    In debug log file, there are several error like this :

    An error occurred: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
    DATABASE ERROR!!!!!!!!!!!!!!!!!

  2. #22
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: Notification problem

    Ok, so it's really this. I wrote a test case, I find it, and try to solve ut (should not be so hard ).
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #23
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: Notification problem

    Hi again,

    It's solved (I think) ;D

    You can grab the lastest sources, or just add this line in the file shinken/modules/livestatus_broker/livestatus_broker.py :
    self.dbcursor = self.dbconn.cursor()
    # Get no rpoblem for utf8 insert
    self.dbconn.text_factory = str
    (Look for the first line, and add the next ones).

    It will solve your problem I think
    No direct support by personal message. Please open a thread so everyone can see the solution

  4. #24

    Re: Notification problem

    I added the line directly in the file and Yeaaaaaaaaaaaaaaaaaah, it's working now ! ;D

    Thanks to all and thanks again for your help, your work and your reactivity ! ;D

  5. #25
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: Notification problem

    You're welcome. Thanks for the bug report
    No direct support by personal message. Please open a thread so everyone can see the solution

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •