This is a topic in Troubleshooting and Bug Reports

Sundial Widget - 'unknown error' problem

 
Avatar 3stripe 34 posts

Hi peeps,

We keep getting an ‘unknown error’ in the widget, any ideas how to fix this?

Cheers.

 
Avatar Jason Fried Administrator 1113 posts

You’ll want to get in touch with the person who designed the widget. We can’t provide support for 3rd party products that work with Basecamp, sorry.

 
Avatar 3stripe 34 posts

No problem Jason, I was wondering if anyone else had this problem?

The people who make Sundial are ignoring my attempts to contact them! :(

 
Avatar go4 4 posts

I have the same thing and see we’re not alone: http://www.clearwired.com/loop/archives/35-Sundial.html. Pity, looks good.

 
Avatar Syko 2 posts

Sundial’s widget doesn’t work because of an HTTP Request problem. It’s fixable. Open the widgets contents then the file “LocalResources/Sundial.js”. Around line 900 you’ll see

‘Host’: (getObj(‘b’)).value,

remove that line entirely. Save the file. Reload the widget. And it will work just like it should.

The reason this happens is because the value of ‘b’ is ‘http://base.camp.address.org’. which is correct. The value of “Host” should be ‘base.camp.address.org’ without the ‘http://’. Setting this value incorrectly yields a “Bad Request error’ from the webserver app basecamp is running, not basecamp itself, and basecamp would have no way of fixing it even if they wanted to.

Removing the line mentioned above will result it the ‘Host’ being set to it’s default value for the url given, which in this case would be ‘base.camp.address.org’. Success.

 
Avatar VC 2 posts

I went so far as to delete the widget I already had and reinstall with the ‘Host’: (getObj(‘b’)).value, line removed and am still getting unknown errors in several places. It can read my projects and to-dos for such, but I haven’t been able to post any time to anything. I wrote to the creators of the widget but no response as of yet.

If anyone else has any ideas I’m all for it… thanks!

 
Avatar VC 2 posts

Figured out another cause – Basecamp project MUST have at least one “to do” listed but do NOT select it in Sundail. (doesn’t make sense but it seems to work)

Hope this helps…

 
Avatar freeassociates 24 posts

In my version of Sundial I found this code snippet around Line 900:

case ‘save_entry’: url += basecampAPI.request_templates.time_tracking.create.url; break; default: url = (getObj(‘b’)).value; break;

Does the use of “URL” instead of “Host” mean my version has been fixed? I think I found that somebody has modified Sundial more recently than the original author, so I downloaded that version. It’s been awhile, and I’m no programmer, so I wonder if you all can enlighten me. Thanks!

 
Avatar danzo 2 posts

THANK YOU SYKO!!!!

In mine, the code in question was on line 898. Deleted it and presto! It works fine!

 
Avatar danzo 2 posts

Actually I take that back…
It logs in and gets a project list, but still throws an “unknown Error” when I try to post time to Basecamp.
BTW, I also tried adding a to-do but not selecting it as VC suggested. No change.

I really love Basecamp… Sundial Widget sucks.

Signup or login to post a reply.