MKS55 / smswiss

Automatically exported from code.google.com/p/smswiss
0 stars 0 forks source link

SMS sending, bug! #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Today I tried to send an sms (with sunrise).
I simply got an error "SMS not sent."

That really doesn't help me to solve the problem.

Original issue reported on code.google.com by michel.y...@vtxmail.ch on 14 Sep 2008 at 10:51

GoogleCodeExporter commented 9 years ago
The widget is reporting full error messages in the console, and not to the user 
interface!
As any software should do :-) (but this is an other story)

Did you try to send the sms to your self to check if the sms is sent anyway or 
not?
I will need some time to debug it because I do not how a Sunrise account 
anymore! 
Or you can do it by your self, by debugging the widget in Xcode, probably the 
Sunrise web site has changed 
and the html parsing script has to be readapted.

Let me know!

Original comment by elia.pa...@gmail.com on 14 Sep 2008 at 6:12

GoogleCodeExporter commented 9 years ago
I will simply ignore your comment about where error messages go. :-D

I'm not familiar with mac os widgets... what console are you talking about?

The sms was sent anyway.

Original comment by michel.y...@vtxmail.ch on 14 Sep 2008 at 8:12

GoogleCodeExporter commented 9 years ago
So, I did not test it! But far as I know there is an error in the SMSEngine 
script.
Actually the script is searching for a certain word inside the returned html 
web page
to establish if the sms was sucessfully sent.
Probably Sunrise has changed their website, therefore the searched word has to 
be
changed.

p.s. to open the console use spotlight and type "console".

Original comment by elia.pa...@gmail.com on 15 Sep 2008 at 9:41

GoogleCodeExporter commented 9 years ago
the same here. not abble to send SMS. 

// message from console //
16.09.08 01:05:08 [0x0-0xf00f].com.apple.dock[122] 2008-09-16 01:05:08.734 
DashboardClient[10708:10b] com.littleprogs.widget.SMSunrise: Unable to send 
sms! 

 the same issue bevor upgading to 3.6. yesterday i was able to send sms.

can i do something to solve the issue?

thanx

Original comment by xhaf...@gmail.com on 15 Sep 2008 at 11:09

GoogleCodeExporter commented 9 years ago
same here.
i think sunrise changed the website. sending sms from my personal account on 
the surise site still works.
thanks.

Original comment by darthwe...@gmail.com on 15 Sep 2008 at 11:52

GoogleCodeExporter commented 9 years ago
Ok, could some one check on the sunrise web site which words are used to tell 
the user that the SMS was 
successfully sent. Better if you provide me the Html string surrouding the word 
like: <td>SMS sent<br><\td>
If the web page is multilanguage would be grate to have the Html string for any 
language.
Many thanks Elia!  

Original comment by elia.pa...@gmail.com on 16 Sep 2008 at 7:13

GoogleCodeExporter commented 9 years ago
<p>
<span id="errorBlock" class="error">
SMS wurde an 0790000000 gesendet.
<br/>
<div id="smsWarningTR" style="display: none;"> Die maximale Nachrichtenlänge 
wurde
erreicht. </div>
</span>
</p>

Original comment by dominik....@gmail.com on 16 Sep 2008 at 9:12

GoogleCodeExporter commented 9 years ago
Acctualy the widget script is cheking for this strings:

        if (html.indexOf("SMS wurde gesendet") != -1) {

        if (html.indexOf("SMS inviato") != -1) {

        if (html.indexOf("Un SMS a été envoyé") != -1) {

Since Sunrise have changed their feedback message the script has to be updated.
We already know how to change it for the german version: "SMS wurde an ... 
gesendet"

Could any one also provide me the freanch and italian version, before I post a 
first
patch.

Bye Elia

Original comment by elia.pa...@gmail.com on 16 Sep 2008 at 1:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
fr: Un SMS a été envoyé à ...
it: L'SMS è stato inviato a ...

Original comment by dominik....@gmail.com on 16 Sep 2008 at 1:56

GoogleCodeExporter commented 9 years ago
Could be we have a possible bug fix candidate!
http://smswiss.googlecode.com/files/SMSunrise3FixBeta.wdgt.zip
please try it out and provide me feedbacks if it is working!

Elia

Original comment by elia.pa...@gmail.com on 17 Sep 2008 at 4:07

GoogleCodeExporter commented 9 years ago
I tried it with 2 SMS and it worked.
But the Widget tells me always: SMS not sent!

Original comment by j.rivere...@gmail.com on 17 Sep 2008 at 4:28

GoogleCodeExporter commented 9 years ago
Sorry I made a mistake, unfortunately I can not test it!
Try it now:
http://smswiss.googlecode.com/files/SMSunrise3FixBeta.wdgt.zip

Original comment by elia.pa...@gmail.com on 17 Sep 2008 at 7:03

GoogleCodeExporter commented 9 years ago
Didn't work for me. It always displays "SMS not sent". And I didn't get it 
either...

Original comment by denis.de...@gmail.com on 17 Sep 2008 at 8:18

GoogleCodeExporter commented 9 years ago
same here... the fix candidate didn't work. no sms and it displays "sms not 
sent". 

Original comment by xhaf...@gmail.com on 17 Sep 2008 at 10:20

GoogleCodeExporter commented 9 years ago
but it works, if you write the number whithout spaces. just go into the 
addressbook abd change the formating of 
th ephone numbers from 0## ####### into 0########. after that, widget will work 
but it will display "sms not 
sent". 

Original comment by xhaf...@gmail.com on 17 Sep 2008 at 10:27

GoogleCodeExporter commented 9 years ago
fixed it! 
use a regex to remove white space for phone numbers. no need to reformat 
address book
entries.
see attached file. line number 195

Original comment by dominik....@gmail.com on 18 Sep 2008 at 6:32

Attachments:

GoogleCodeExporter commented 9 years ago
Yeah works again, but it always shows "SMS not sent", even if it has been sent.

Original comment by denis.de...@gmail.com on 18 Sep 2008 at 6:55

GoogleCodeExporter commented 9 years ago
Thats because Elia is using another/new function to check sent confirmation 
from the
sms service.
I still use following modified function:

function getSMSisSent(html){

//Check if the page contains contents that you obtain when login is 
successfull     
if (html.indexOf("SMS wurde an") != -1) {
    return true;
}
if (html.indexOf("SMS inviato") != -1) {
    return true;
}

if (html.indexOf("Un SMS a été envoyé") != -1) {
    return true;
}

return false;
}

Original comment by dominik....@gmail.com on 18 Sep 2008 at 7:07

GoogleCodeExporter commented 9 years ago
Many thanks to Dominik for the regex.
I have merged the regex and the new getSMSisSent method.
Let's test it and hope is working for everyone!

(To be sure you are running the correct version, please first delete the old 
one from the dashboard and then 
install the new one)

Original comment by elia.pa...@gmail.com on 18 Sep 2008 at 8:01

Attachments:

GoogleCodeExporter commented 9 years ago
its working. juhuuuu. :D

Original comment by xhaf...@gmail.com on 18 Sep 2008 at 11:09

GoogleCodeExporter commented 9 years ago
We published the new version 3.7! Please if it is working report it here!

Original comment by elia.pa...@gmail.com on 18 Sep 2008 at 2:40

GoogleCodeExporter commented 9 years ago
works perfectly! thanks for your work, it's appreciated a lot.

Original comment by darthwe...@gmail.com on 18 Sep 2008 at 7:43

GoogleCodeExporter commented 9 years ago
still doesn't work. I deleted the old widget, installed the new one but messages
arent sent.

Original comment by bisac...@mac.com on 18 Sep 2008 at 9:26

GoogleCodeExporter commented 9 years ago
@bisaccia
which sms provider are you using?

Original comment by dominik....@gmail.com on 19 Sep 2008 at 7:38

GoogleCodeExporter commented 9 years ago
sunrise. usually the dot right beside the "xxx sms left" should be green. now 
its
orange. can login, but can't send

Original comment by bisac...@mac.com on 19 Sep 2008 at 8:11

GoogleCodeExporter commented 9 years ago
@Bisaccia,
I need some more information. On which language are you using the Sunrise mail 
portal? Can you try to set 
german as your default language and then try the widget again.

Let me know
Elia

Original comment by elia.pa...@gmail.com on 22 Sep 2008 at 7:40

GoogleCodeExporter commented 9 years ago
I'm using the german language. as i told you, I can login, but can't send.
i made a picture so u can see how the widget looks like after i log in.
maybe it helos

Original comment by bisac...@mac.com on 22 Sep 2008 at 12:12

Attachments:

GoogleCodeExporter commented 9 years ago
Ok, so the orang dot is normal, that's because you have only 14 free sms left.
And the SMS is probably not sent because you have put a space in the phone 
number.

Regards
Elia

Original comment by elia.pa...@gmail.com on 22 Sep 2008 at 12:33

GoogleCodeExporter commented 9 years ago
Thanks! if i delete the space it works now.
I always used apples adressbook and it was working on a previous version with 
the
space in the phone number.

Thanks a lot :)

Original comment by bisac...@mac.com on 23 Sep 2008 at 8:45

GoogleCodeExporter commented 9 years ago
Seems to be broken again. Sunrise has probably changed its layout again?

Original comment by denis.de...@gmail.com on 25 Sep 2008 at 8:04

GoogleCodeExporter commented 9 years ago
Hello,

I use this widget at home but I can't to office.
Can you do anything for use your widget behind a proxy?

So, at office, I use SwissSMS, its run ok, but the widget can't logged in.

Why I do not use SwissSMS altime? Because if a update are necessary, SwissSMS 
take a longe time for do the 
update. And when a update are necessary, befor to have an alerte who said "no 
transmit", SwissSMS run some 
days but dont delevery the sms.

Your widget doesn't work if there's anything change on the website sunrise.

I prefer to use a widget which does not function any more if the Web site 
changed and not an application 
which functions and does not deliver the sms before to have had a new update.

PS Sorry for ma bad english, I hope then you understund me.

Guy

Original comment by gheir...@gmail.com on 2 Oct 2008 at 3:47

GoogleCodeExporter commented 9 years ago
i see this error:
"Cookie error!"
what can i do?

Original comment by brippst...@gmail.com on 22 Oct 2008 at 8:02

GoogleCodeExporter commented 9 years ago
Please try to get more information by consulting the console, the widget stores 
there additional log data.

Original comment by elia.pa...@gmail.com on 24 Oct 2008 at 6:53

GoogleCodeExporter commented 9 years ago
I'm a newbie so please apologise if this has been discussed before. The phone 
numbers in my address book are 
formatted as follows: +41-XX-XXX-XXXX. Sending messages like that does not 
work, I always have to edit out 
the dash characters. Is there a way around? Thank you very much!

Original comment by cu8s...@gmail.com on 27 Apr 2009 at 4:48

GoogleCodeExporter commented 9 years ago
The current release do not manage the "-" character in phone numbers.
Thanks to inform us about the limitation, in the next release we will add a 
functionality that automatically 
removes "-".

Please stay in touch probably already the next week a beta version of smswiss 
will be released!

Regards
Elia

Original comment by elia.pa...@gmail.com on 28 Apr 2009 at 7:41

GoogleCodeExporter commented 9 years ago
The "-" problem in phones number has ben solved.
Please try out our last beta version of SMSWiss

Original comment by elia.pa...@gmail.com on 29 May 2009 at 1:29