Code Monkey home page Code Monkey logo

Comments (5)

jwoglom avatar jwoglom commented on June 11, 2024

Hopefully we can get this gone for good. try the latest build, I added explicit retry logic (in addition to using tandem's estimated expiration time) for whenever there's a http 401 in the api and forced a relogin.

from tconnectsync.

LegendaryGeek avatar LegendaryGeek commented on June 11, 2024

its pretty late for me here, so im going to get some sleep and let it run like i usually do. will get back once i see if it has stopped

from tconnectsync.

LegendaryGeek avatar LegendaryGeek commented on June 11, 2024
New event index: 95118 last: 95018

Downloading t:connect ControlIQ data

Downloading t:connect CSV data

HTTP 500 in therapy_timeline_csv (retry count 0): WS2 API HTTP 500 response: Options,Error,Output,ResponseStatus

,,,"{ErrorCode:XmlException,Message:Root element is missing.,Errors:[]}"

(HTTP 500)

HTTP 500 in therapy_timeline_csv (retry count 1): WS2 API HTTP 500 response: Options,Error,Output,ResponseStatus

,,,"{ErrorCode:XmlException,Message:Root element is missing.,Errors:[]}"

(HTTP 500)

HTTP 500 in therapy_timeline_csv (retry count 2): WS2 API HTTP 500 response: Options,Error,Output,ResponseStatus

,,,"{ErrorCode:XmlException,Message:Root element is missing.,Errors:[]}"

(HTTP 500)

Traceback (most recent call last):

File "/home/appuser/tconnectsync/api/ws2.py", line 67, in therapy_timeline_csv

req_text = self.get('therapytimeline2csv/%s/%s/%s?format=csv' % (self.userGuid, startDate, endDate), {})

File "/home/appuser/tconnectsync/api/ws2.py", line 23, in get

raise ApiException(r.status_code, "WS2 API HTTP %s response: %s" % (str(r.status_code), r.text))

tconnectsync.api.common.ApiException: WS2 API HTTP 500 response: Options,Error,Output,ResponseStatus

,,,"{ErrorCode:XmlException,Message:Root element is missing.,Errors:[]}"

(HTTP 500)


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

File "/home/appuser/tconnectsync/api/ws2.py", line 67, in therapy_timeline_csv

req_text = self.get('therapytimeline2csv/%s/%s/%s?format=csv' % (self.userGuid, startDate, endDate), {})

File "/home/appuser/tconnectsync/api/ws2.py", line 23, in get

raise ApiException(r.status_code, "WS2 API HTTP %s response: %s" % (str(r.status_code), r.text))

tconnectsync.api.common.ApiException: WS2 API HTTP 500 response: Options,Error,Output,ResponseStatus

,,,"{ErrorCode:XmlException,Message:Root element is missing.,Errors:[]}"

(HTTP 500)


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

File "/home/appuser/main.py", line 69, in <module>

main()

File "/home/appuser/main.py", line 62, in main

process_auto_update(tconnect, nightscout, time_start, time_end, args.pretend)

File "/home/appuser/tconnectsync/autoupdate.py", line 31, in process_auto_update

added = process_time_range(tconnect, nightscout, time_start, time_end, pretend)

File "/home/appuser/tconnectsync/process.py", line 38, in process_time_range

csvdata = tconnect.ws2.therapy_timeline_csv(time_start, time_end)

File "/home/appuser/tconnectsync/api/ws2.py", line 72, in therapy_timeline_csv

return self.therapy_timeline_csv(start, end, tries+1)

File "/home/appuser/tconnectsync/api/ws2.py", line 72, in therapy_timeline_csv

return self.therapy_timeline_csv(start, end, tries+1)

File "/home/appuser/tconnectsync/api/ws2.py", line 73, in therapy_timeline_csv

raise e

File "/home/appuser/tconnectsync/api/ws2.py", line 67, in therapy_timeline_csv

req_text = self.get('therapytimeline2csv/%s/%s/%s?format=csv' % (self.userGuid, startDate, endDate), {})

File "/home/appuser/tconnectsync/api/ws2.py", line 23, in get

raise ApiException(r.status_code, "WS2 API HTTP %s response: %s" % (str(r.status_code), r.text))

tconnectsync.api.common.ApiException: WS2 API HTTP 500 response: Options,Error,Output,ResponseStatus

,,,"{ErrorCode:XmlException,Message:Root element is missing.,Errors:[]}"

(HTTP 500)

long error... appeared overnight while i was asleep

from tconnectsync.

jwoglom avatar jwoglom commented on June 11, 2024

Looks like the same http 500 as before that's a bug on Tandem's end. I added some retry logic there but I suspect there's not really much more we can do.

I think the real solution for now is just that, if you've properly configured tconnectsync, this error should be ignorable so long as it doesn't happen continuously. The next time tandem's servers return actual data everything will be scraped and put into nightscout.

from tconnectsync.

LegendaryGeek avatar LegendaryGeek commented on June 11, 2024

well, im getting the 500 about 4 times a day now, but as you said, much cant be done, so i just need to keep hitting the lauch button as a 500 kills the program. but anyways, i thank you for all you've done

from tconnectsync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.