Skip to content

Fails to parse *.sk TLD #129

@mienkofax

Description

@mienkofax

When attempting to parse the response for sme.sk, google.sk from whois.sk-nic.sk you get an Unexpected token error.

Running the code

#!/usr/bin/env ruby

require 'whois-parser'

record = Whois.whois("sme.sk")
parser = record.parser

p Whois::Parser::PROPERTIES

p parser.domain

Fails with the following error:

./rub 
[:disclaimer, :domain, :domain_id, :status, :available?, :registered?, :created_on, :updated_on, :expires_on, :registrar, :registrant_contacts, :admin_contacts, :technical_contacts, :nameservers]
Traceback (most recent call last):
        3: from ./rub:10:in `<main>'
        2: from /var/lib/gems/2.5.0/gems/whois-parser-1.2.0/lib/whois/parser.rb:348:in `method_missing'
        1: from /var/lib/gems/2.5.0/gems/whois-parser-1.2.0/lib/whois/parser.rb:327:in `domain'
/var/lib/gems/2.5.0/gems/whois-parser-1.2.0/lib/whois/parser.rb:365:in `delegate_property_to_parsers': Unable to find a parser for property `domain' (Whois::AttributeNotImplemented)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions