metaregistrar / php-epp-client

Object-oriented PHP EPP Client
https://www.metaregistrar.com/docs/
MIT License
214 stars 156 forks source link

2400 internal error #102

Closed timmie01 closed 6 years ago

timmie01 commented 6 years ago

Hi, by every request I get Error 2400, what I'm doing wrong? I am trying checkdomain.php with SIDN.

I ajdust checkdomain.php for sidn connection and I see the connection is working, I can also login, but the command domain:check fails with error 2400

-----READ-----2017-08-15 21:55:15----- <?xml version="1.0" encoding="UTF-8"?>

The transaction was completed successfully. 599351a2eea28 04D5226D-BC57-4739-5148-9CF26A1DEA05

-----END-----2017-08-15 21:55:15-----

-----LOGIN-----2017-08-15 21:55:15----- Logged in -----END-----2017-08-15 21:55:15-----

-----WRITE-----2017-08-15 21:55:15----- <?xml version="1.0" encoding="UTF-8"?>

nu.nl 599351a335e13

-----END-----2017-08-15 21:55:15-----

-----READ-----2017-08-15 21:55:15----- <?xml version="1.0" encoding="UTF-8"?>

Internal error. 599351a335e13 SIDN
metaregistrar commented 6 years ago

I presume there is something wrong with the XML formatting of the message but the XML on your message was not properly formatted. Please use the "insert code" option to show XML

timmie01 commented 6 years ago

HI,

These is a XML formatting problem,

I deleted the namespace in the epp rule, and now I got an error back from SIDN that this is no binding for the namespace.

The correct format whould be

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

dyris.nl ABC-12345

The epp rule should look like

instead of The domain:check rule shuold look like : instead of it look like the the xmlns:domain parameter is on the wrong rule. This is the request/response from sidn if I delete the namespace from the epp rule maastricht.nl 599413be457d8 -----END-----2017-08-16 11:43:26----- -----READ-----2017-08-16 11:43:26----- Error at Line:0 Prefix [domain] used without binding it to a namespace URI xxx SIDN I don't now how to put the xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" in the domein:check rule dut I think this would be the solution. ________________________________ From: Ewout de Graaf Sent: Wednesday, August 16, 2017 9:00 AM To: metaregistrar/php-epp-client Cc: timmie01; Author Subject: Re: [metaregistrar/php-epp-client] 2400 internal error (#102) I presume there is something wrong with the XML formatting of the message but the XML on your message was not properly formatted. Please use the "insert code" option to show XML — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
metaregistrar commented 6 years ago

SIDN accepts both ways, you can put the namespace directly into the first EPP line, or you can put it where it is used, in the domain check.

There is a branch of php-epp-client that does just this, (branch namespaces-in-root-or-not), but you don't need to go there. The main branch php-epp-client should work fine with SIDN, as we use it daily for this.

Please find hereunder a correct example of how SIDN handles a domain:check using the standard php-epp-client library

==== LOG ==== -----CONNECT-----2017-08-16 12:21:32----- Connection made -----END-----2017-08-16 12:21:32----- -----WRITE-----2017-08-16 12:21:32----- <?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <command> <login> <clID>XXXXXXXXXXXXXXXX</clID> <pw>XXXXXXXXXXXXXXXX</pw> <options> <version>1.0</version> <lang>en</lang> </options> <svcs> <objURI>urn:ietf:params:xml:ns:domain-1.0</objURI> <objURI>urn:ietf:params:xml:ns:contact-1.0</objURI> <objURI>urn:ietf:params:xml:ns:host-1.0</objURI> <svcExtension> <extURI>http://rxsd.domain-registry.nl/sidn-ext-epp-1.0</extURI> <extURI>urn:ietf:params:xml:ns:secDNS-1.1</extURI> </svcExtension> </svcs> </login> <clTRID>59941cac2c7dd</clTRID> </command> </epp> ` -----END-----2017-08-16 12:21:32-----` -----READ-----2017-08-16 12:21:32----- <?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <response> <result code="1000"> <msg>The transaction was completed successfully.</msg> </result> <trID> <clTRID>59941cac2c7dd</clTRID> <svTRID>5508897A-0AF6-D1DD-5C79-5423E124C03B</svTRID> </trID> </response> </epp> ` -----END-----2017-08-16 12:21:32-----` -----LOGIN-----2017-08-16 12:21:32----- Logged in -----END-----2017-08-16 12:21:32----- ` -----WRITE-----2017-08-16 12:21:32-----` ` <?xml version="1.0" encoding="UTF-8"?>` `<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">` `<command>` ` <check>` ` <domain:check>` ` <domain:name>testen.nl</domain:name>` ` </domain:check>` ` </check>` ` <clTRID>59941cac40888</clTRID>` `</command>` `</epp>` -----END-----2017-08-16 12:21:32----- ` -----READ-----2017-08-16 12:21:32-----` ` <?xml version="1.0" encoding="UTF-8"?>` `<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">` `<response>` ` <result code="1000">` ` <msg>The availability of the domain name has been checked.</msg>` ` </result>` ` <resData>` ` <domain:chkData>` ` <domain:cd>` ` <domain:name avail="true">testen.nl</domain:name>` ` </domain:cd>` ` </domain:chkData>` ` </resData>` ` <trID>` ` <clTRID>59941cac40888</clTRID>` ` <svTRID>2F77B2FE-880E-7AC2-2C6D-E728597BFB17</svTRID>` ` </trID>` `</response>` `</epp>` -----END-----2017-08-16 12:21:32----- ` -----WRITE-----2017-08-16 12:21:32-----` ` <?xml version="1.0" encoding="UTF-8"?>` `<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">` `<command>` ` <logout></logout>` `</command>` `</epp>` -----END-----2017-08-16 12:21:32----- ` -----READ-----2017-08-16 12:21:32----- <?xml version="1.0" encoding="UTF-8"?> You are now logged off. 59F0ADAC-11CE-EA64-A18F-60783129FB26 -----END-----2017-08-16 12:21:32----- -----LOGOUT-----2017-08-16 12:21:32----- Logged out -----END-----2017-08-16 12:21:32----- -----DISCONNECT-----2017-08-16 12:21:32----- Disconnected -----END-----2017-08-16 12:21:32-----`

timmie01 commented 6 years ago

strange,

If I use the standard branch of php-epp-client I get the same result see below.

Could it be a php problem, I use

PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies

-----WRITE-----2017-08-16 13:49:41----- <?xml version="1.0" encoding="UTF-8"?>

maastricht.nl 59943155eca1e

-----END-----2017-08-16 13:49:41-----

-----READ-----2017-08-16 13:49:41----- <?xml version="1.0" encoding="UTF-8"?>

Internal error. 59943155eca1e SIDN

From: Ewout de Graaf notifications@github.com Sent: Wednesday, August 16, 2017 10:27 AM To: metaregistrar/php-epp-client Cc: timmie01; Author Subject: Re: [metaregistrar/php-epp-client] 2400 internal error (#102)

SIDN accepts both ways, you can put the namespace directly into the first EPP line, or you can put it where it is used, in the domain check.

There is a branch of php-epp-client that does just this, (branch namespaces-in-root-or-not), but you don't need to go there. The main branch php-epp-client should work fine with SIDN, as we use it daily for this.

Please find hereunder a correct example of how SIDN handles a domain:check using the standard php-epp-client library

==== LOG ==== -----CONNECT-----2017-08-16 12:21:32----- Connection made -----END-----2017-08-16 12:21:32----- -----WRITE-----2017-08-16 12:21:32----- <?xml version="1.0" encoding="UTF-8"?>

XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX 1.0 en urn:ietf:params:xml:ns:domain-1.0 urn:ietf:params:xml:ns:contact-1.0 urn:ietf:params:xml:ns:host-1.0 http://rxsd.domain-registry.nl/sidn-ext-epp-1.0 urn:ietf:params:xml:ns:secDNS-1.1 59941cac2c7dd

-----END-----2017-08-16 12:21:32----- -----READ-----2017-08-16 12:21:32----- <?xml version="1.0" encoding="UTF-8"?>

The transaction was completed successfully. 59941cac2c7dd 5508897A-0AF6-D1DD-5C79-5423E124C03B

-----END-----2017-08-16 12:21:32----- -----LOGIN-----2017-08-16 12:21:32----- Logged in -----END-----2017-08-16 12:21:32----- -----WRITE-----2017-08-16 12:21:32----- <?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"> <command> <check> <domain:check> <domain:name>testen.nl</domain:name> </domain:check> </check> <clTRID>59941cac40888</clTRID> </command> </epp> -----END-----2017-08-16 12:21:32----- -----READ-----2017-08-16 12:21:32----- <?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"> <response> <result code="1000"> <msg>The availability of the domain name has been checked.</msg> </result> <resData> <domain:chkData> <domain:cd> <domain:name avail="true">testen.nl</domain:name> </domain:cd> </domain:chkData> </resData> <trID> <clTRID>59941cac40888</clTRID> <svTRID>2F77B2FE-880E-7AC2-2C6D-E728597BFB17</svTRID> </trID> </response> </epp> -----END-----2017-08-16 12:21:32----- -----WRITE-----2017-08-16 12:21:32----- <?xml version="1.0" encoding="UTF-8"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <command> <logout></logout> </command> </epp> -----END-----2017-08-16 12:21:32----- -----READ-----2017-08-16 12:21:32----- ` ` ` ` ` You are now logged off.` ` ` ` ` ` 59F0ADAC-11CE-EA64-A18F-60783129FB26` ` ` ` -----END-----2017-08-16 12:21:32----- -----LOGOUT-----2017-08-16 12:21:32----- Logged out -----END-----2017-08-16 12:21:32----- -----DISCONNECT-----2017-08-16 12:21:32----- Disconnected -----END-----2017-08-16 12:21:32-----`

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-322729519, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZnPeSCXaiDZCjMetMjcMpDWvUeddks5sYsP1gaJpZM4O4D_A.

metaregistrar commented 6 years ago

Maybe you are nog logging in correctly. Please make sure that upon login this is included:

<svcs> <objURI>urn:ietf:params:xml:ns:domain-1.0</objURI> <objURI>urn:ietf:params:xml:ns:contact-1.0</objURI> <objURI>urn:ietf:params:xml:ns:host-1.0</objURI> <svcExtension> <extURI>http://rxsd.domain-registry.nl/sidn-ext-epp-1.0</extURI> <extURI>urn:ietf:params:xml:ns:secDNS-1.1</extURI> </svcExtension> </svcs>

timmie01 commented 6 years ago

I am logged in successfully see log below.

==== LOG ==== -----CONNECT-----2017-08-16 15:39:34----- Connection made -----END-----2017-08-16 15:39:34-----

-----WRITE-----2017-08-16 15:39:34----- <?xml version="1.0" encoding="UTF-8"?>

XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX 1.0 en urn:ietf:params:xml:ns:domain-1.0 urn:ietf:params:xml:ns:contact-1.0 urn:ietf:params:xml:ns:host-1.0 http://rxsd.domain-registry.nl/sidn-ext-epp-1.0 urn:ietf:params:xml:ns:secDNS-1.1 59944b166cf71

-----END-----2017-08-16 15:39:34-----

-----READ-----2017-08-16 15:39:34----- <?xml version="1.0" encoding="UTF-8"?>

The transaction was completed successfully. 59944b166cf71 6CD9F25C-5B12-B3A5-C24F-A9FC5C4E5976

-----END-----2017-08-16 15:39:34-----

-----LOGIN-----2017-08-16 15:39:34----- Logged in -----END-----2017-08-16 15:39:34-----

-----WRITE-----2017-08-16 15:39:34----- <?xml version="1.0" encoding="UTF-8"?>

maastricht.nl 59944b16a8abc

-----END-----2017-08-16 15:39:34-----

-----READ-----2017-08-16 15:39:34----- <?xml version="1.0" encoding="UTF-8"?>

Internal error. 59944b16a8abc SIDN

-----END-----2017-08-16 15:39:34-----

-----WRITE-----2017-08-16 15:39:34----- <?xml version="1.0" encoding="UTF-8"?>

-----END-----2017-08-16 15:39:34-----

-----READ-----2017-08-16 15:39:34----- <?xml version="1.0" encoding="UTF-8"?>

You are now logged off. 8991FFB8-77D5-53F3-5DB9-8C2AF1CCC510

-----END-----2017-08-16 15:39:34-----

-----LOGOUT-----2017-08-16 15:39:34----- Logged out -----END-----2017-08-16 15:39:34-----

-----DISCONNECT-----2017-08-16 15:39:34----- Disconnected -----END-----2017-08-16 15:39:34-----


From: Ewout de Graaf notifications@github.com Sent: Wednesday, August 16, 2017 1:31 PM To: metaregistrar/php-epp-client Cc: timmie01; Author Subject: Re: [metaregistrar/php-epp-client] 2400 internal error (#102)

Maybe you are nog logging in correctly. Please make sure that upon login this is included:

urn:ietf:params:xml:ns:domain-1.0 urn:ietf:params:xml:ns:contact-1.0 urn:ietf:params:xml:ns:host-1.0 http://rxsd.domain-registry.nl/sidn-ext-epp-1.0 urn:ietf:params:xml:ns:secDNS-1.1

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-322771573, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZsV53FVbUU-DI9f5SxPKYLCOPT0Cks5sYu8vgaJpZM4O4D_A.

metaregistrar commented 6 years ago

Well, this surely is a nice riddle. I have done a 'diff' check of both our commands, and the only difference the system finds is the client transaction ID.

diff check2.xml check1.xml 9c9 < 59945328a768d

<clTRID>59944b16a8abc</clTRID>

Maybe you should send this off to support@sidn.nl and ask them what goes wrong. I am surely very curious what the answer is!

timmie01 commented 6 years ago

Hello,

I just contact SIDN support, and there answer is that this error should be formatting error.

They unfortunately cannot see what is going wrong.

They ask me to use the example xml for domaincheck from there website, en try if then the error still exist, but I don't now how I can use there xml.or ajust the xml that is an exact copy.


From: Ewout de Graaf notifications@github.com Sent: Wednesday, August 16, 2017 2:19 PM To: metaregistrar/php-epp-client Cc: timmie01; Author Subject: Re: [metaregistrar/php-epp-client] 2400 internal error (#102)

Well, this surely is a nice riddle. I have done a 'diff' check of both our commands, and the only difference the system finds is the client transaction ID.

diff check2.xml check1.xml 9c9 < 59945328a768d

59944b16a8abc

Maybe you should send this off to support@sidn.nlmailto:support@sidn.nl and ask them what goes wrong. I am surely very curious what the answer is!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-322786621, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZtWqFffWKVnm0cf7R-VilPt5W3I2ks5sYvp1gaJpZM4O4D_A.

metaregistrar commented 6 years ago

This sounds like a nice 'standard answer' from support. Are you using the live EPP service from SIDN or the test service?

timmie01 commented 6 years ago

We use the live service on ssl://drs.domain-registry.nl on port 700


From: Ewout de Graaf notifications@github.com Sent: Thursday, August 17, 2017 11:33 AM To: metaregistrar/php-epp-client Cc: timmie01; Author Subject: Re: [metaregistrar/php-epp-client] 2400 internal error (#102)

This sounds like a nice 'standard answer' from support. Are you using the live EPP service from SIDN or the test service?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-323044962, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZrzLFo_HjUcSXv0kRMJ4hnn-8LCAks5sZCUdgaJpZM4O4D_A.

metaregistrar commented 6 years ago

can you try if you have the same issue on SIDN test service? If you can tell them there is no issue on the test service with the same code, they will need to search deeper.

We have had this problem (error 2400) some time ago with SIDN, and they needed to restart a broken process to get it fixed.

timmie01 commented 6 years ago

if I use the test service ( I only change the settings.ini file ) to ssl://testdrs.domain-registry.nl and use the test accounts then I get the following error ERROR: Error 2001: Error in login (clID and pw must be present).

The accounts are double check with sidn so they are working and in the XML I see the clID en pw.

So I seems there is a differents between test and production.

Checking 1 domain names ERROR: Error 2001: Error in login (clID and pw must be present).

==== LOG ==== -----CONNECT-----2017-08-17 15:43:57----- Connection made -----END-----2017-08-17 15:43:57-----

-----WRITE-----2017-08-17 15:43:57----- <?xml version="1.0" encoding="UTF-8"?>

XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX 1.0 en urn:ietf:params:xml:ns:domain-1.0 urn:ietf:params:xml:ns:contact-1.0 urn:ietf:params:xml:ns:host-1.0 http://rxsd.domain-registry.nl/sidn-ext-epp-1.0 urn:ietf:params:xml:ns:secDNS-1.1 59959d9d4fec9

-----END-----2017-08-17 15:43:57-----

-----READ-----2017-08-17 15:43:57----- <?xml version="1.0" encoding="UTF-8"?>

Error in login (clID and pw must be present). 59959d9d4fec9 SIDN

From: Ewout de Graaf notifications@github.com Sent: Thursday, August 17, 2017 12:10 PM To: metaregistrar/php-epp-client Cc: timmie01; Author Subject: Re: [metaregistrar/php-epp-client] 2400 internal error (#102)

can you try if you have the same issue on SIDN test service? If you can tell them there is no issue on the test service with the same code, they will need to search deeper.

We have had this problem (error 2400) some time ago with SIDN, and they needed to restart a broken process to get it fixed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-323053762, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZlOFmwfrTardnNHf2PFYguD1UEjUks5sZC27gaJpZM4O4D_A.

metaregistrar commented 6 years ago

Can you please pull the latest version from the repository - i have made an change where the system would put [<[CDATA]] around the password, but SIDN does not accept this. The latest version fixes this.

timmie01 commented 6 years ago

I use the latest version, and now the test is wordking I can check the domain name in the test drs system. Production give me an autorisatie error on the command check (error 2201) but I see the connection is made and I am logged in. so now it is a different error as before and I will reset my EPP account password first, because I dit need to change my password also 2 time before the test was working. I will change this tomorrow and let you know wat the result are.

On 17 Aug 2017, at 17:06, Ewout de Graaf notifications@github.com<mailto:notifications@github.com> wrote:

Can you please pull the latest version from the repository - i have made an change where the system would put [<[CDATA]] around the password, but SIDN does not accept this. The latest version fixes this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-323087540, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZvNSbX-ObbrRK75eEHbtEvUP1Q5Jks5sZEu7gaJpZM4O4D_A.

timmie01 commented 6 years ago

Hello Ewout,

Hereby an update on my problem. After several contact with SIDN we finally have all working. The problem was that our EPP account was active but wasn’t attach to a role “deelnemer” within the EPP database, so it wasn’t a problem with the php program. The attach me to this role and then everything was working as it should be.. SIDN will now go thru all there accounts so that the can adjust these if the not attached. The also make a note so that someone else have this problem the wil check this first.

Thank you for all your effort.

On 17 Aug 2017, at 17:06, Ewout de Graaf notifications@github.com<mailto:notifications@github.com> wrote:

Can you please pull the latest version from the repository - i have made an change where the system would put [<[CDATA]] around the password, but SIDN does not accept this. The latest version fixes this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-323087540, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZvNSbX-ObbrRK75eEHbtEvUP1Q5Jks5sZEu7gaJpZM4O4D_A.

metaregistrar commented 6 years ago

Excellent, thanks. I also saw that SIDN corrected the [<[CATA]] issue with the password.