Comments (5)
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.
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.
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.
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.
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)
- Question HOT 1
- heroku
- API Errors: Error occurred querying WS2 therapy_timeline_csv / get() got an unexpected keyword argument 'timeout' HOT 2
- Updating to a new version fails HOT 2
- Unknown therapy event type: Basal HOT 1
- Error: Cannot parse 2022-12-02+06:47:45.300389 00:00 as a valid ISO-8601 date HOT 21
- arrow.parser.ParserError: Could not match input '' to any of the following formats: ... HOT 1
- API Errors on startup ("Web Page Blocked!") HOT 7
- Heroku Free Resource causing app not to deploy HOT 2
- Bolus not updating in NS HOT 1
- Set up tconnectsync - login issues HOT 4
- json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) HOT 3
- Unable to Setup HOT 2
- Tier failure HOT 2
- Profile sync HOT 7
- ControlIQ API HTTP 500 response HOT 2
- Hints on usage of iob: Insulin-on-board? HOT 2
- Tandem Source Compatibility
- Report: tconnect.tandemdiabetes.com now blocks connections from Amazon AWS IPs HOT 1
- API errors received when testing heroku URL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tconnectsync.