vbsteven / Telenet-Telemeter-Chrome-extension

Chrome extension to check Telemeter of belgian ISP Telenet
vbsteven.be
2 stars 1 forks source link

Credentials aren't working correct. #2

Closed MCautreels closed 13 years ago

MCautreels commented 13 years ago

I filled in the right details but I still get the following error message:

Invalid data Are your credentials correct?

I hope you understand I can't just give the details ... ;-) But if you like I can try and check the code if you don't mind.

(I tried using the same credentials on de mijn telenet website).

Heymans commented 13 years ago

Telenet has 3 ways to login on the mijn.telenet.be website: 1) With your telenet e-mail 2) Telenet Login 3) Telenet Username You've probably used the Telenet-Login way.

For the extension it seems that you have to use the telenet Username. For example: w472859 (you can find it when you log in on the mijn.telenet.be page => Mijn internet: Hoofdgebruiker)

I also tried it with my telenet-login and it failed, with my telenet username it works fine

vbsteven commented 13 years ago

Indeed, it is the Telenet login you need to use for the extension. It should start with 'w' or 'a' followed by 6digits.

Can you retry with this login and see if it works?

MCautreels commented 13 years ago

My Telenet Username starts with a 't', but I guess that won't be a problem?!

Toobad I can't remember my password ...

I know you can change it but you need access to your modem's MAC which is quite hard since it's inside the white Telenet case behind cabinet. I'll try to find more out tomorrow! ;-) I'll let you know if it works.

titso-pletso commented 13 years ago

My username starts with a 'u' and I can't login either.

So this may be the issue...?

vbsteven commented 13 years ago

With which letter the login starts shouldn't really matter. I gave 'a' and 'w' as examples because those are two logins I have access to. t123456 or u123456 should also work.

So there is something else going on. If you want to help me debug, could you follow these steps?

  1. Rightclick the extension icon and select 'manage extensions'
  2. Click the -/+ sign next to developer mode to enable developer mode
  3. Find the telenet extension in the list and click on background.html. (the source code should open)
  4. In the dev tools, press the escape key once so the console pops up in the bottom of the screen
  5. In the console type " fetchdata(); " and paste the results here.

Ofcourse you can review the results so there are no passwords or something in there

titso-pletso commented 13 years ago

Here you go:

Error: NETWORK_ERR: XMLHttpRequest Exception 101 (background.html:33) Uncaught Error: NETWORK_ERR: XMLHttpRequest Exception 101

MCautreels commented 13 years ago

When I use my Telenet Login I get the same error so it might just be that.

MCautreels commented 13 years ago

I've found another login which I can access the telemeter with. Username: 'u766263' and a correct password. When I try to connect this is the response of Telenet:

<?xml version='1.0' encoding='UTF-8'?>S:ServerException ID: CustExternalC1_lngmgt_tnet117_1292338187996 Error Messages: ERRLNGMGT_00016:lngmgt:No data found ERRTLMTLS_00001Exception ID: CustExternalC1_lngmgt_tnet117_1292338187996 Error Messages: ERRLNGMGT_00016:lngmgt:No data found /ns2:TelemeterFault/S:Fault/S:Body/S:Envelope

If I have the time I'd like to help your resolve these issues.

Btw: didn't know Telenet had a SOAP service for the Telemeter ^^ Cool

vbsteven commented 13 years ago

I just tried to call fetchdata() a few consecutive times and I've seen two errors popping up a few times:

  1. Error: NETWORK_ERR: XMLHttpRequest Exception 101 (The same as titso-pletso)
  2. 500 internal server error response

Both errors are related to the webservice so I'll have to contact Telenet to see if they can do something about it.

@MaartenC Can you retry calling fetchdata() a few times and see if it keeps showing the same error. If it does we will have to contact Telenet for this one as the error occurs on the serverside when processing the request.

MCautreels commented 13 years ago

I've tried a few times myself and a few times the application did it itself. The first 5-6 times where all the same 500 error (Telenet's side) but the 4 last times I got the same 101 error :s

fetching data t4t.services.telenet.be/TelemeterServiceFailed to load resource: the server responded with a status of 500 (Internal Server Error) background.html:37telemeter service returned status 500 background.html:14fetching data t4t.services.telenet.be/TelemeterServiceFailed to load resource: the server responded with a status of 500 (Internal Server Error) background.html:37telemeter service returned status 500 background.html:14fetching data t4t.services.telenet.be/TelemeterServiceFailed to load resource: the server responded with a status of 500 (Internal Server Error) background.html:37telemeter service returned status 500 background.html:14fetching data t4t.services.telenet.be/TelemeterServiceFailed to load resource: the server responded with a status of 500 (Internal Server Error) background.html:37telemeter service returned status 500 background.html:14fetching data t4t.services.telenet.be/TelemeterServiceFailed to load resource: the server responded with a status of 500 (Internal Server Error) background.html:37telemeter service returned status 500 background.html:14fetching data t4t.services.telenet.be/TelemeterServiceFailed to load resource: the server responded with a status of 500 (Internal Server Error) background.html:37telemeter service returned status 500 background.html:14fetching data t4t.services.telenet.be/TelemeterServiceFailed to load resource: the server responded with a status of 500 (Internal Server Error) background.html:37telemeter service returned status 500 2background.html:14fetching data t4t.services.telenet.be/TelemeterServiceFailed to load resource: the server responded with a status of 500 (Internal Server Error) background.html:37telemeter service returned status 500 background.html:14fetching data t4t.services.telenet.be/TelemeterServiceFailed to load resource: the server responded with a status of 500 (Internal Server Error) background.html:37telemeter service returned status 500 2background.html:14fetching data t4t.services.telenet.be/TelemeterServiceFailed to load resource: the server responded with a status of 500 (Internal Server Error) background.html:37telemeter service returned status 500 fetchdata(); background.html:14fetching data TelemeterServiceFailed to load resource: the server responded with a status of 500 (Internal Server Error) background.html:37telemeter service returned status 500 undefined fetchdata(); background.html:14fetching data Error: NETWORK_ERR: XMLHttpRequest Exception 101 fetchdata(); background.html:14fetching data Error: NETWORK_ERR: XMLHttpRequest Exception 101 fetchdata(); background.html:14fetching data Error: NETWORK_ERR: XMLHttpRequest Exception 101 fetchdata(); background.html:14fetching data Error: NETWORK_ERR: XMLHttpRequest Exception 101

It's like a 101 when I do fetchdata() myself and a 500 when the extension refreshes itself ...

vbsteven commented 13 years ago

If you see the 101 error, can you restart your chrome and try to do a manual fetch again?

Also, what OS and Chrome version are you running?

MCautreels commented 13 years ago

I'm using Chrome 9.0.597.19 dev on Windows 7 x64 pretty fresh install (from yesterday).

When I restarted and I tried a fetchdata() again it started giving 500 errors. But noticed when I did 2 pretty quick after eachother I got a 101 error! So I guess it's something at Telenet.

If Telenet want any login info you should let me know, I'll send it to them if they need it!

MCautreels commented 13 years ago

Heard anything of Telenet?

vbsteven commented 13 years ago

Not yet, I should still ask them about the 500 server errors.

The 101 exception seems to be chrome/network related and I have added proper error handling for that in the latest version.

MCautreels commented 13 years ago

I've seen your presentation on Droidcon and I bummed into the telemeter extension again! I tested it again and I'm still getting 500 errors. I'm still receiving "No Data" Errors. Any news? Should I call Telenet Support myself?

vbsteven commented 13 years ago

I haven't been able to contact telenet about these issues yet as I have been busy very busy lately with my day jobs and android apps.

Feel free to contact them about the 500 errors. If you provide them with the timestamps of when you saw the errors they might see something in their logs.

MCautreels commented 13 years ago

Where can I find some documentation about the API and maybe a contact address?

vbsteven commented 13 years ago

Documentation for the api can be found on http://wiki.telenetservices.be/ although you will probably have to signup before you have access.

The only contact with someone from Telenet I had was with @jhml on twitter. He helped me to get the extension approved by telenet guidelines.

MCautreels commented 13 years ago

I've solved the problem. Apperently only with the old Telenet Login (t454501) it worked but I had a very hard time resetting the password. Even with the data from the tools Telenet is using themselves it didn't work until I won Fibernet and they replaced the router.

But now it's working very smoothly! Thanks for the great extension and support!