by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    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
    sqz I was just wondering how other people are triggering scheduled jobs?
    sqz right now, I'm looking into https://github.com/jaeggerr/parse-jobs-scheduler
    Nikolay Andryukhin
    @hybeats
    Can i link 2 separate parse-server instances under one authorization?
    Nikolay Andryukhin
    @hybeats
    guys?)
    Tom Fox
    @Tom-Fox1
    This chat has been phased out for over a year now. Please use our community forum for general questions, Stack Overflow for code level questions and slack for real time discussion - https://join.slack.com/t/parseopensource/shared_invite/zt-8w385vtf-gIxfSqORSyoK6RO~y3bHZA

    ————————————
    ADMIN ANNOUNCEMENT

    This chat room has been phased out and is no longer monitored by our core team. Please do not expect any response, use other appropriate channels.
    ————————————

    Felipe Franco
    @franquicidad
    Hello i have a big issue installing flutter i have the latest flutter version and it is Dart VM version: 2.6.0 "macos_x64" with macOs Catalina on mac book pro. The error is... ./flutter/.pub-cache/hosted/pub.dartlang.org/build_resolvers-1.0.6/lib/src/resolver.dart:9:8: Error: Error when reading '../flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-0.36.4/lib/src/dart/analysis/driver.dart': No such file or directory
    import 'package:analyzer/src/dart/analysis/driver.dart' show AnalysisDriver;