Code Monkey home page Code Monkey logo

Comments (5)

eldadfux avatar eldadfux commented on May 12, 2024

@cellerich please share the Appwrite SDK code you are using.

from sdk-for-python.

cellerich avatar cellerich commented on May 12, 2024

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.

eldadfux avatar eldadfux commented on May 12, 2024

@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.

cellerich avatar cellerich commented on May 12, 2024

@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.

eldadfux avatar eldadfux commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.