Code4HR / hrt-bus-text-my-bus

text to find in realtime when the bus is coming. powered by the hrtb.us api
Apache License 2.0
1 stars 1 forks source link

Make stop parse info more robust #9

Closed qwo closed 9 years ago

qwo commented 9 years ago

https://github.com/Code4HR/hrt-bus-text-my-bus/blob/master/app.js/#L52

evaluation is not as expected. (Stop 0208)

>parseInt("0208")
>208
ghost commented 9 years ago

cURLing this locally, I don't see this error anymore. Could you push to live and we can test that way?

qwo commented 9 years ago

deployed.

last commit msg

3e737bd08e764f6b8a4a690ca88ee868e775372d Implemented search by address. NOTE: address recogniser not implemented...

On Tue, Nov 11, 2014 at 7:05 AM, Ryan Y. notifications@github.com wrote:

cURLing this locally, I don't see this error anymore. Could you push to live and we can test that way?

— Reply to this email directly or view it on GitHub https://github.com/Code4HR/hrt-bus-text-my-bus/issues/9#issuecomment-62537982 .

Stanley Zheng

ghost commented 9 years ago

Strange, I don't get the issue locally for 0212, but it seems the number doesn't return anything yet. What do the logs say?

EDIT: I cURLed http://hrtbus.herokuapp.com/msg and got a proper response, so I don't know what to make of that.

qwo commented 9 years ago

might help with debugging to reestablish a new ssh key with your heroku account and add the remote git@heroku.com:hrtbus.git

I don't think i acn be helpful on debugging right now

On Tue, Nov 11, 2014 at 8:10 AM, Ryan Y. notifications@github.com wrote:

Strange, I don't get the issue locally for 0212, but it seems the number doesn't return anything yet. What do the logs say?

— Reply to this email directly or view it on GitHub https://github.com/Code4HR/hrt-bus-text-my-bus/issues/9#issuecomment-62544419 .

Stanley Zheng

ghost commented 9 years ago

I pushed up. Where do I find application logs?

Also, I can cURL the right info from live, but help gets replaced with Reply STOP to unsubscribe. Msg&Data Rates May Apply.

Also, you can now put in 111 Granby St. or Brandon Ave, Norfolk and get arrival times now.

qwo commented 9 years ago

oh flubber.

i forget still the heroku cli its 'heroku logs -t', similar to 'tails -f mylog.log'.

you can't directly ssh without the CLI it looks like.

the bad answer is to use res and dump the error on the screen. Also. Awesome!

On Tue, Nov 11, 2014 at 9:34 AM, Ryan Y. notifications@github.com wrote:

I pushed up. Where do I find application logs?

Also, I can cURL the right info from live, but help gets replaced with Reply STOP to unsubscribe. Msg&Data Rates May Apply.

Also, you can now put in 111 Granby St. or Brandon Ave, Norfolk and get arrival times now.

— Reply to this email directly or view it on GitHub https://github.com/Code4HR/hrt-bus-text-my-bus/issues/9#issuecomment-62554509 .

Stanley Zheng

qwo commented 9 years ago

fixed by ryan in e2b815aca69c06301c95bb2cee0bd1057847c9a9