Code Monkey home page Code Monkey logo

Comments (10)

Tananga avatar Tananga commented on May 13, 2024 1

Thanks for help!

from sdk-for-dart.

lohanidamodar avatar lohanidamodar commented on May 13, 2024 1

This issue should now be fixed. Feel free to reopen if you still have issues.

from sdk-for-dart.

2002Bishwajeet avatar 2002Bishwajeet commented on May 13, 2024

Can you share the stack trace of what's not working??

from sdk-for-dart.

Tananga avatar Tananga commented on May 13, 2024

This whole example section of code which is inside readme file is not a valid Dart code.

from sdk-for-dart.

2002Bishwajeet avatar 2002Bishwajeet commented on May 13, 2024

Okay, I see what's the issue.
it should be

Client client = Client()
.setEndpoint('http://[HOSTNAME_OR_IP]/v1') // Make sure your endpoint is accessible
.setProject('5ff3379a01d25') // Your project ID
.setKey('cd868c7af8bdc893b4...93b7535db89')
.setSelfSigned() // Use only on dev mode with a self-signed SSL cert

and not the one's in readme. I will drop a PR for this soon.

Till that time, I would recommend follow from the appwrite docs

from sdk-for-dart.

2002Bishwajeet avatar 2002Bishwajeet commented on May 13, 2024

This issue has been fixed. You can close this now

from sdk-for-dart.

Tananga avatar Tananga commented on May 13, 2024

@2002Bishwajeet This code is still not valid.

Client client = Client();
.setEndpoint('http://[HOSTNAME_OR_IP]/v1') // Make sure your endpoint is accessible
.setProject('5ff3379a01d25') // Your project ID
.setKey('cd868c7af8bdc893b4...93b7535db89')
.setSelfSigned()

from sdk-for-dart.

2002Bishwajeet avatar 2002Bishwajeet commented on May 13, 2024
Client client = Client(); --> There should be no semi-colon
.setEndpoint('http://[HOSTNAME_OR_IP]/v1') // Make sure your endpoint is accessible
.setProject('5ff3379a01d25') // Your project ID
.setKey('cd868c7af8bdc893b4...93b7535db89')
.setSelfSigned()

from sdk-for-dart.

Tananga avatar Tananga commented on May 13, 2024

And ; at the end

from sdk-for-dart.

2002Bishwajeet avatar 2002Bishwajeet commented on May 13, 2024

yup- a typo

from sdk-for-dart.

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.