Comments (5)
@cellerich please share the Appwrite SDK code you are using.
from sdk-for-python.
Setup:
- I run my own copy of AppWrite in a Kubernetes cluster
- trying stuff from within a Jupyter Notebook (Python) on how to access the database
- appwrite version in Python is: appwrite==0.0.5
Code:
from appwrite.client import Client
from appwrite.services.storage import Storage
client = Client()
client.set_project('5f1a86f2bfe96') # my project ID
client.set_key('xxxxxxxxxxxxxxxxxxx') # my secret API key )
client.set_endpoint('https://aw.example.com/v1') # my appwrite endpoint
storage = Storage(client)
filelist = storage.list_files()
Error message I get from Jupyter
C:\Users\msp\AppData\Local\Continuum\anaconda3\lib\site-packages\urllib3\connectionpool.py:847: InsecureRequestWarning:
Unverified HTTPS request is being made. Adding certificate verification is strongly advised.
See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
from sdk-for-python.
@cellerich, you can try and use client. set_self_signed()
method to allow your Appwrite SDK to send requests with a self-signed SSL certificate.
If you're running Appwrite on a server with a public IP and a public suffix domain, Appwrite will auto-generate an SSL certificate for you. Just make sure your domain is set properly in your Appwrite container ENV vars, and restart your Appwrite container to generate your certificate.
from sdk-for-python.
@eldadfux, that did the trick!
Thanks a lot for your work on AppWrite. I haven't done much yet, but I love it so far.
I know about the auto-generated SSL but in my case I'm running AppWrite in a small Kubernetes cluster together with NodeRed and OpenFaas and gave the "certificate handling" to my reverse proxy Traefik v2.
Again, thank you!
from sdk-for-python.
That's great to hear @cellerich. If you'll have some time during the weekend, I'd love to hear your feedback about our upcoming built-in cloud functions for Appwrite, and learn if that might be useful for your use case instead of using Appwrite in combination with OpenFaas.
You can learn more about Appwrite cloud function on this links:
appwrite/appwrite#307
https://github.com/appwrite/appwrite/blob/master/docs/specs/functions.drawio.svg
I can share more info on our Discord channel: https://appwrite.io/discord
from sdk-for-python.
Related Issues (20)
- Improved code snippets for debugging HOT 2
- While creating team the logged in user is not getting registered as owner. HOT 9
- Issue creating a file HOT 7
- Upgrade our issue templates to use GitHub issue forms ✍️ HOT 7
- SSL Verification is Off by Default HOT 1
- 🐛 Bug Report: HOT 1
- 🚀 Feature: Type hints HOT 10
- 🐛 Bug Report: Python SDK - Querying with a boolean value leads to " Query type does not match expected: boolean" HOT 9
- 🚀 Feature: use fstring instead str.replace() ? HOT 9
- 🐛 Bug Report: library not working around `http` and only works for `https` HOT 6
- 🚀 Feature: Console API HOT 1
- 🐛 Bug Report: `Query.orderDesc` and `Query.orderAsc` not working. HOT 2
- 🐛 Bug Report: Can't filter by DateTime
- 🚀 Feature: use linting tools (pre-commit) HOT 8
- 🚀 Feature: use type hints
- 📚 Documentation: Mistake in code snippets in getting started guide HOT 18
- 📚 Documentation: HOT 1
- 🐛 Bug Report: AttributeError: type object 'Query' has no attribute 'orderDesc' HOT 2
- 📚 Documentation: Updating Readme HOT 3
- 🐛 Bug Report: Start With Python Tutorial fails HOT 1
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-for-python.