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

Core bug: wkd.lookup returning HTML response as UInt8Array #3

Open
titanism opened this issue Feb 6, 2024 · 0 comments
Open

Core bug: wkd.lookup returning HTML response as UInt8Array #3

titanism opened this issue Feb 6, 2024 · 0 comments

Comments

@titanism
Copy link

titanism commented Feb 6, 2024

In the example below, if an invalid key is fetched, then the value of binaryKey will be a UInt8Array that is actually a complete HTML response from the fetch request. It should be sanitized and dummy-proofed a bit further. We've submitted a PR to fix this for a majority of edge cases.

const binaryKey = await wkd.lookup({
  email: address
});
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