-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 2001: Command syntax error #402
Comments
Hi there! Here's my settings file (settings.ini):
This is the response I'm getting when I run the PHP script "infodomain.php google.pt":
Let me know if you have any suggestions or insights! |
Hi, unfortunately haven't found a solution yet. Hopefully @metaregistrar would be able to pinpoint the syntax error based on the posted info or after follow up questions. |
@Skiewie, did you try in your settings file to use 'certificatefile' and 'certificatepassword'? |
@jminhal , I have not tried these parameters. What kind of certificate would I have to use? Do I need to download one from the SIDN portal or generate something? |
You are connecting to DNS.PT, so getting a certificate from SIDN will not help you in any way. The registry (DNS.PT) can help you if you need a certificate or not. When you are receiving "syntax error", it seems that you already have a proper connection, so a certificate will probably not be needed here. It seems that DNS.PT has problems with the syntax of the formatted EPP command, so you would be best to consult the registry to ask which part of the XML command they do not accept. I have checked the DNS.PT EPP documentation, and their login command includes the ptcontact-1.0 and ptdomain-1.0 extensions. Have you tried adding these to your login? |
@metaregistrar the dns.pt issue is from another user. Can you check the primary post from 5 december? Thx! |
I think you either have to create a sidnEppConnection (that should maybe give another error) or add these extensions to your connection attempt: SIDN probably expects these extensions. When I login to SIDN the command looks like this:
|
Just tested it again and it does show the extensions, unfortunately with the same syntax error:
I have modified checkdomain.php: In the $conn part changed eppConnection to sidnEppConnection: Yet, this shows the same syntax error:
Are there any other things I should check or try? Thanks! |
I have viewed both our login commands side-by-side, and they are exactly the same. The best thing is to ask SIDN what goes wrong here, because the login command that I showed is succesful and yours is not. There must be some difference but I cannot find it. |
Hi,
We have quite some domains of which we want to change the nameservers to a new hostname.
Unfortunately I'm running into a 2001 syntax error while testing the script with the infodomain.php example.
There is another issue posted years ago with the same error, but that one was closed. Someone mentioned changing the password, but this didn't work for me.
The steps I've done to come this far:
From
if ($conn = eppConnection::create('')) {
To
if ($conn = eppConnection::create('../Registries/settings.ini')) {
Also tried sidnEppConnection.
Is there maybe something I'm missing or should check? Hopefully someone can help me out, thanks!
The text was updated successfully, but these errors were encountered: