-
Notifications
You must be signed in to change notification settings - Fork 0
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
Hitting an undefined is not iterable
with sigsAndProofs
error in the README example.
#458
Comments
undefined sigsAndProofs
error in the README example.undefined is not iterable
with sigsAndProofs
error in the README example.
Did a bit more digging. I'm pretty sure this error is popping up because the account I used was already registered to the program I was using. I tried running the example again but with a completely new account, and didn't get this error. I'll leave it to you @frankiebee if you wanna debug this a bit further. Otherwise, I'm happy for you to close it. |
AYE, seeing this too on the
async function sendHttpPost(url, data) {
const headers = {
"Content-Type": "application/json"
};
const response = await fetch(url, {
method: "POST",
headers,
body: data
});
if (!response.ok) {
throw new Error(
`request failed ${response.status}, ${response.statusText} fetch: ${url} FULLRESPONSE: ${await response.text()}`
);
}
const reader = response.body.getReader();
const start = (controller) => {
async function pump() {
const { done, value } = await reader.read();
if (done) {
controller.close();
return;
}
controller.enqueue(value);
return pump();
}
return pump();
};
const stream = new ReadableStream({ start });
const streamResponse = new Response(await stream);
if (!streamResponse.ok) {
throw new Error(
`request failed ${streamResponse.status}, ${streamResponse.statusText} FULLRESPONSE: ${await streamResponse.text()}`
);
}
const responseResult = await streamResponse.json();
const oks = responseResult.map((r) => r.Ok); // <=========== HERE
return oks;
} |
Ignore this. See Frankie's comment below: #458 (comment) |
i found out the underlying cause: see: entropyxyz/entropy-core#1260 i'll have a fix on are side for parsing the errors momentarily |
Was running through the example in this repo's
README
and his this error:The text was updated successfully, but these errors were encountered: