Comments (3)
That's interesting, thank you for the stack traces. I'm leaning towards it being a cleanup issue. The Python garbage collector should be freeing up the resources being used by the client at the end of the loop, but it appears that something is going wrong there.
I'll need to look deeper into this before I can give you a detailed rundown of what's going wrong. I'll keep you in the loop!
Thank you for reporting this, @gaby
from sdk.
Hi @gaby, sorry for the delayed response. Are you able to share a stack trace or a more complete error? Is the python server running on Windows by any chance? I remember reading about an issue like this specifically on Windows machines/servers.
If you're running on Linux, can you please share more information about the distribution / image you're using?
from sdk.
@DanielHougaard I have updated the example code, it only happens if I create an InfisicalClient
per call. If I do a global one this doesn't happen.
Stack Trace:
thread '<unnamed>' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.37.0/src/runtime/scheduler/multi_thread/worker.rs:447:13:
OS can't spawn worker thread: Resource temporarily unavailable (os error 11)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
File "/home/ubuntu/Desktop/git/fix/infisical-test.py", line 22, in <module>
decryptedString = InfisicalClient().decryptSymmetric(decryptOptions)
File "/usr/local/lib/python3.10/dist-packages/infisical_client/infisical_client.py", line 87, in decryptSymmetric
result = self._run_command(Command(decrypt_symmetric=options))
File "/usr/local/lib/python3.10/dist-packages/infisical_client/infisical_client.py", line 32, in _run_command
response_json = self.inner.run_command(json.dumps(command.to_dict()))
pyo3_runtime.PanicException: OS can't spawn worker thread: Resource temporarily unavailable (os error 11)
from sdk.
Related Issues (15)
- Python SDK: ModuleNotFoundError: No module named 'infisical_py' HOT 2
- add .whl file to PyPI HOT 4
- Java SDK: Unable to load library 'infisical_c' HOT 5
- Unable to use python SDK HOT 1
- Error trying to connect: invalid peer certificate: BadSignature HOT 17
- Java SDK: Unknown Issuer when accessing selfhosted Infiscal HOT 4
- Can't retrieve secrets with Python SDK HOT 3
- Error aws lambda function when building with Mac AppleSilicon HOT 1
- Poetry complains about validation of RECORD file failed
- getSecret with 'path' argument returns cached value for different path HOT 3
- Support For Deno HOT 16
- GoLang SDK HOT 2
- Node @infisical/sdk is not working with nodemon HOT 2
- Bring back the cryptography functions for Python SDK HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk.