Skip to content

getOwnerFromDomainTld throws error when owner cannot be found #20

@MarcusHSmith

Description

@MarcusHSmith
const parser = new TldParser(connection)
return await parser.getOwnerFromDomainTld(domain)

Throws the error

⨯ TypeError: Cannot read properties of undefined (reading 'owner')
    at /var/task/.next/server/chunks/3078.js:15:23136
    at Generator.next (<anonymous>)
    at o (/var/task/.next/server/chunks/3078.js:15:20926)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    ```
    
    when domain is a not found
    
    In our test cases the api is passing a solana address, which should not have a owner. However it should fail more gracefully than throwing an exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions