Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ryan D. Guild
    @RyanGuild
    hey anyone been playing with the graphql
    Tom Fox
    @TomWFox
    @RyanGuild I suggest you join the slack group we don’t use this chat room anymore.
    Ramesh
    @rameshkec85
    Hi, Can anyone advice how to save Parse file in ReactNative ?
    Manish Saparia
    @manishsaparia_twitter
    "You cannot use [object Object] as a query parameter." Queyr = http://localhost:1337/parse/classes/Student?where={"class":{"class":"3"}} ,,,, "contact": [
    9016487168,
    9979421666
    ],
    "address": {
    "street1": "Alaknanda",
    "street2": "HoneyPark Road",
    "area": "Adalaj",
    "city": "Baroda",
    "State": "Gujarat",
    "Country": "Australia"
    },
    "class": {
    "class": 3,
    "Div": "B"
    },
    John Thomson
    @JohnThomson
    We would like to write a cloud code function that can log a user in without knowing the password. One source suggested making a Session, but even with {useMasterKey:true} I can't set the user field of a Parse.Session. Anyone know a workable approach? (unfortunately we're still on 2.8.4)
    Diamond Lewis
    @dplewis
    We don’t use this chat room anymore please use the slack group
    Alex Gorcea
    @AlexGorcea
    Any way to get an invite to the slack group?
    Mitchell Jones
    @mj7man_twitter
    Hey there fellas, I'm attempting to download a file from Parse. I've found plenty of documentation and can upload no problem, now I'm trying to retrieve the files! I get 403 error no matter what I try so far.
        fw_binary = CFAFirmware.Query.get(fw_version=version_num)
        fw_url = fw_binary.fw_file.url
        print(fw_url)
        payload = {}
        headers = {
            "X-Parse-Application-Id": "{}".format(parse_utils.APPLICATION_ID),
            "X-Parse-REST-API-Key": "{}".format(parse_utils.REST_API_KEY)
            }
        res = requests.get(fw_url, headers=headers)
    Any suggestions?
    Diamond Lewis
    @dplewis
    Is your fileURL correct? And can you view it publicly
    Coder of Salvation / Leon van Kammen
    @coderofsalvation
    @mj7man_twitter maybe authentication issue? Did you copy/paste this code from the docs or did you try to do a rest-request yourself?
    Nikolay Andryukhin
    @hybeats
    Hello, i have a problem. Couldn't find a way to query rows with array keys equal to empty array.
    For example:
    I have class 'Shelf' with key 'books' type of Array
    I have 2 rows. First row has books = [ { Pointer }, { Pointer } ]. Second row has books = []
    How do i query second row?
    matrixbot
    @matrixbot
    @sqz:matrix.org Not sure if i understand
    matrixbot
    @matrixbot
    @sqz:matrix.org You mean books[1] ?
    Omar Juarez
    @omarojo
    Sashido or Back4app ?
    matrixbot
    @matrixbot
    sqz Omar Juarez (Gitter): I do database imports/exports on a daily basis between my production & dev-server (postgres that is)
    sqz I can imagine this works similar for mongodump on the cmdline
    sqz Back4app instances also give you a mongodb uri (which can be used with mongodump e.g.)
    Omar Juarez
    @omarojo
    Thanks for the reply @matrixbot
    RavinClearsmile
    @RavinClearsmile
    Hi everyone.
    I'm new to parseplatform.

    I'm trying to retrieve the session using the rest API, but the end point does not seem to be recognized. I try reading the docs, not sure what I'am doing wrong.

    I referred to this, I think I'm following exactly
    https://docs.parseplatform.org/rest/guide/#retrieving-sessions

    I'm using Postman to do the testing.
    Appreciate anyone that can point me to the right direction.
    matrixbot
    @matrixbot
    sqz Hi Ravin
    sqz Personally I use the javascript client (which automatically supports realtime data & sessions under the hood)
    sqz first question is: do you really want to use REST to manage sessions (if no, use the parse JS SDK client, logging in automatically gives you a session)
    second: if you do need to use rest, which endpoint are you calling, and what http code does postman return
    RavinClearsmile
    @RavinClearsmile
    I want to use REST to manage sessions.
    I'm calling the /1/sessions/{objectid} via HTTP GET method.
    I'm using parse from the hosted platform sashido.
    There is no respond from this endpoint, its a dead one. Not even a error response.
    RavinClearsmile
    @RavinClearsmile
    I have made sure i have set all this headers correctly:
    X-Parse-Application-Id:
    X-Parse-REST-API-Key:
    X-Parse-Session-Token:
    matrixbot
    @matrixbot
    sqz hm I have no experience with sashido, so what is the HTTP Status code being returned?
    sqz 500? 400?
    sqz that could tell us a bit more
    sqz I suspect the url is slightly incorrect..it depends on how parse-server was initialized.
    Sometimes its /{appname}/sessions/{objectid} e.g. or sometimes /api/{appname}/sessions/{objectid}
    RavinClearsmile
    @RavinClearsmile

    Hi @matrixbot , no errors because the end point doesn't exist

    I'm using :
    https://pg-app-j52b31tafz9e4zief6wff7ihcb6hwi.scalabl.cloud/1/sessions/YHzTaCBH7p

    I'm very confused about what I'm doing wrong, the app url starts with https://pg-app-j52b31tafz9e4zief6wff7ihcb6hwi.scalabl.cloud/1

    Others like classes, login, health, etc, work as expected, only session is a dead endpoint.

    RavinClearsmile
    @RavinClearsmile

    Hi @matrixbot, the problem seems to be resolved now. There was some configuration problem. After digging deeper, now it seems to work.

    Thanks!

    matrixbot
    @matrixbot
    sqz RavinClearsmile (Gitter):
    sqz awesome!
    Ricky Chan
    @ricky.yhrchan_gitlab
    is there anyone using React as a front-end and Parse as backend?
    Jerome De Leon
    @JeromeDeLeon
    @ricky.yhrchan_gitlab Me
    Ricky Chan
    @ricky.yhrchan_gitlab
    @JeromeDeLeon what is the pattern to use to inject Parse.User.current() information (i.e. username) onto a React component?
    Jerome De Leon
    @JeromeDeLeon
    what do you mean pattern? I have this AppContext where it has currentUser property and every mount of <App /> component, I just injected it there.
    componentDidMount() {
      this.setState({ currentUser: Parse.User.current() });
    }
    Of course, you would need to validate it in case of session token expiration, or deleting the user's data through localStorage or parse-dashboard
    Ricky Chan
    @ricky.yhrchan_gitlab
    @JeromeDeLeon thanks, i ended up using React hooks since i am using React Function Components
    Jerome De Leon
    @JeromeDeLeon
    Yes, that would be fine too.
    matrixbot
    @matrixbot
    sqz posted an image: image.png