-
Notifications
You must be signed in to change notification settings - Fork 32
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
pyhaystack.util.state.NotReadyError #118
Comments
Means the request you issued had not been completed by the time you asked for the result. While 3 seconds should be enough time, I don't know enough about the environment. Configuring the
|
If I don't set the wait for 3 seconds, it will remain blocked indefinitely. logging also not work. |
Then there is something that is preventing the request from being processed at all. The result will be available when it's fulfilled by the server and library, not before. So if after 3 seconds, it still isn't done, and you ask for the result, it'll error out the way it did above. Why didn't it complete? Who knows? The above logs don't tell us. I refer you to #118 (comment) for advice on how you can troubleshoot it further. I can't say I've ever tested on FINStack, so no telling whether it'd work or not. |
ok , Is there something wrong with my code logic? |
It's hard to know without further logging detail. I refer you to #118 (comment) for advice on how logging can be configured and captured to provide further information. |
note this error |
Right, sounds like the SCRAM auth is not quite working properly and the Haystack thinks we're a web browser, thus sends us to the UI page to interactively authenticate. Looks like it's failing right here: Not sure why it gets stuck at that point, authentication should have failed, but in any case, it appears either this implementation is not compatible with Skyspark, or they've changed their protocols yet again. |
if I use https:
but also throw err : pyhaystack.util.state.NotReadyError |
As I say, I don't know FIN|Stack. This is not a Haystack implementation I've worked on, nor have access to. It's a big assumption to presume compatibility with Skyspark. It is also possible that there is a bug in Skyspark support code too. It doesn't get a lot of "love". I said as much in #118 (comment). HTTP vs HTTPS: this will depend on what your server's configuration is. Whatever your web browser uses if you use a web browser to interact with FIN|Stack, you should use the same protocol in |
python: 3.12.1
pyhaystack: 3.0.0
When I run this code, it throws an error :
Why is this happening? Is there something wrong with my code logic?
The text was updated successfully, but these errors were encountered: