Closed jjclinton closed 5 years ago
What is error 2001? Is there an errortext connected to this error?
Command syntax error, but I checked the syntax in the example file and it is exactly the same.
Entire error:
in /var/www/vhosts/brisp.nl/staging.brisp.nl/wp-content/plugins/domein-api/php-epp-client/Protocols/EPP/eppResponses/eppResponse.php:228 Stack trace:
I will try your code and see what happens on this side.
OK thank you very much.
I have no problem running your code. This is my code example, and i get code 1000 (ok)
$name = 'jay';
$city = 'Amsterdam';
$country = 'NL';
$organization = null;
$address= 'Pomme1';
$postcode = '7905BA';
$telephone = '+31.612413333';
$email = 'jjay@gmail.com';
$contactinfo = new Metaregistrar\EPP\eppContact(new Metaregistrar\EPP\EppContactPostalInfo($name, $city, $country, $organization, $address, null, $postcode, Metaregistrar\EPP\eppContact::TYPE_LOC), $email, $telephone);
$create = new \Metaregistrar\EPP\sidnEppCreateContactRequest($contactinfo);
$response = $this->conn->request($create);
$this->assertEquals('1000',$response->getResultCode());
Wow that's weird :(. I will try it again, I hope can figure it out. I will let you know once I have.
So when I pass in the variables like that it works perfectly, but if I put the exact same values as parameters in the function it starts complaining.
I am not sure why, but it works now.. Thanks for your help.
Hello, last week I encountered an SIDN error 2001 and it's still throwing this error. I try to create a contact with the sidnEppCreateContactRequest($contactinfo) command
My $contactinfo is as follows:
$contactinfo = new eppContact(new EppContactPostalInfo($name, $city, $country, $organization, $address, null, $postcode, Metaregistrar\EPP\eppContact::TYPE_LOC), $email, $telephone);
This is in a function called createcontact which is called by:
createcontact($conn,'jjay@gmail.com','+31.612413333','jay',null,'Pomme1','7905BA','Amsterdam','NL')
Is there something wrong with this? Thank you in advance.
Kind regards,
Joshua Clinton