Skip to content
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

Issue with checking domain #3

Open
TeekieWebHostingSA opened this issue Jun 12, 2024 · 1 comment
Open

Issue with checking domain #3

TeekieWebHostingSA opened this issue Jun 12, 2024 · 1 comment

Comments

@TeekieWebHostingSA
Copy link

TeekieWebHostingSA commented Jun 12, 2024

I am utilizing following code:

        if ($epp->check_domain($domainToCheck) == 1) {
            print "Domain is available\n" ;
        
        } else {
            my $info = $epp->domain_info($domainToCheck);
            printf("Domain was registered on %s by %s\n", $info->{crDate}, $info->{crID});
        }
        

And i get the error:

Can't locate object method "check_domain" via package "epp" (perhaps you forgot to load "epp"?) at twhepp.pl line 56.
Wed Jun 12 12:41:44 2024 (93337): DESTROY() method called
Wed Jun 12 12:41:44 2024 (93337): logging out
Wed Jun 12 12:41:44 2024 (93337): sending a string to the server
Wed Jun 12 12:41:44 2024 (93337): C: <?xml version="1.0" encoding="UTF-8"?>
Wed Jun 12 12:41:44 2024 (93337): C: <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
Wed Jun 12 12:41:44 2024 (93337): C:   <command>
Wed Jun 12 12:41:44 2024 (93337): C:     <logout/>
Wed Jun 12 12:41:44 2024 (93337): C:     <clTRID>05837103ae53674a3bbbc993230591633f89bc09</clTRID>
Wed Jun 12 12:41:44 2024 (93337): C:   </command>
Wed Jun 12 12:41:44 2024 (93337): C: </epp>
Wed Jun 12 12:41:44 2024 (93337): reading frame, waiting 5 seconds before timeout
Wed Jun 12 12:41:44 2024 (93337): setting timeout alarm for receiving frame
Wed Jun 12 12:41:44 2024 (93337): unsetting timeout alarm after successful receive
Wed Jun 12 12:41:44 2024 (93337): S: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
Wed Jun 12 12:41:44 2024 (93337): S: <epp xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:ietf:params:xml:ns:epp-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
Wed Jun 12 12:41:44 2024 (93337): S:   <response>
Wed Jun 12 12:41:44 2024 (93337): S:     <result code="1500">
Wed Jun 12 12:41:44 2024 (93337): S:       <msg>Command completed successfully; ending session</msg>
Wed Jun 12 12:41:44 2024 (93337): S:     </result>
Wed Jun 12 12:41:44 2024 (93337): S:     <trID>
Wed Jun 12 12:41:44 2024 (93337): S:       <clTRID>05837103ae53674a3bbbc993230591633f89bc09</clTRID>
Wed Jun 12 12:41:44 2024 (93337): S:       <svTRID>20240612144041095295-q4h3z5-reg1114-NORID</svTRID>
Wed Jun 12 12:41:44 2024 (93337): S:     </trID>
Wed Jun 12 12:41:44 2024 (93337): S:   </response>
Wed Jun 12 12:41:44 2024 (93337): S: </epp>
Wed Jun 12 12:41:44 2024 (93337): disconnecting from server

$epp variable are utilized with my $epp = Net::EPP::Simple->new(i removed the sensitive EPP credentials);
and i am using: use Net::EPP::Simple;

@gbxyz
Copy link
Owner

gbxyz commented Jun 14, 2024

The first line is the relevant one and looks like a Perl syntax error. Can you paste the actual code (with credentials removed)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants