Skip to content

SubjectAltNameWarning and IntegrityError  #20

@Gwonke

Description

@Gwonke

On execution of s.sync() I receive a warning and an IntegrityError.
This error occurs with my code (which previously worked) and with the tmpo.ipynb example code.
I run Jupyter Notebook from Anaconda with Python 2.7

Warning:
...\AppData\Local\Continuum\Anaconda2\lib\site-packages\requests\packages\urllib3\connection.py:337: SubjectAltNameWarning: Certificate for api.flukso.net has no subjectAltName, falling back to check for a commonName for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See urllib3/urllib3#497 for details.)
SubjectAltNameWarning

Error:
IntegrityError Traceback (most recent call last)
in ()
1 # Sync data met Flukso server
2
----> 3 s.sync()

...\AppData\Local\Continuum\Anaconda2\lib\site-packages\tmpo_init_.pyc in wrapper(*args, **kwargs)
133 self.dbcur.execute(SQL_TMPO_TABLE)
134 # execute function
--> 135 result = func(*args, **kwargs)
136 # commit everything and close connection
137 self.dbcon.commit()

...\AppData\Local\Continuum\Anaconda2\lib\site-packages\tmpo_init_.pyc in sync(self, *sids)
197 else:
198 rid, lvl, bid = 0, 0, 0
--> 199 self._req_sync(sid, rid, lvl, bid)
200
201 @dbcon

...\AppData\Local\Continuum\Anaconda2\lib\site-packages\tmpo_init_.pyc in _req_sync(self, sid, rid, lvl, bid)
307 for (t, f) in fs:
308 self._write_block(
--> 309 f.result(), sid, t["rid"], t["lvl"], t["bid"], t["ext"])
310
311 def _req_block(self, sid, token, rid, lvl, bid, ext):

...\AppData\Local\Continuum\Anaconda2\lib\site-packages\tmpo_init_.pyc in _write_block(self, r, sid, rid, lvl, bid, ext)
323 blk = sqlite3.Binary(r.content)
324 now = time.time()
--> 325 self.dbcur.execute(SQL_TMPO_INS, (sid, rid, lvl, bid, ext, now, blk))
326 self._clean(sid, rid, lvl, bid)
327 self._dprintf(DBG_TMPO_WRITE, now, sid, rid, lvl, bid, len(blk))

IntegrityError: UNIQUE constraint failed: tmpo.sid, tmpo.rid, tmpo.lvl, tmpo.bid

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions