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

getOwnerFromDomainTld throws error when owner cannot be found #20

Open
MarcusHSmith opened this issue Aug 8, 2024 · 0 comments
Open

Comments

@MarcusHSmith
Copy link

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
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

1 participant