Skip to content

Cloud Code timeout in parse-server #3439

Closed

Description

@jasonm1

Describe your issue in as much detail as possible.

I have a Cloud Code beforeSave that can take longer than 3 seconds to complete. Of course, this was impossible on the Parse hosted service, as it had a 3 second timeout, but I don't see why that needs to be the case on parse-server. Can I extend the timeout, and if so, how?

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 2.2.2
    • Operating System: Amazon Linux 2016.09
    • Hardware: AWS
    • Localhost or remote server? AWS
  • Database

    • MongoDB version: 3.0.11
    • Storage engine: MMAPv1
    • Hardware: ObjectRocket
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): ObjectRocket

Logs/Trace

You can turn on additional logging by configuring VERBOSE=1 in your environment.

[Error]: The request timed out. (Code: 100, Version: 1.14.2)

Activity

  1. ethandrower commented on Feb 3, 2017

    @ethandrower

    hmm is the response code important to your app? You could use the trigger to kickoff a cloud job I'd think which doesn't have a timeout

  2. flovilmart commented on Feb 3, 2017

    @flovilmart
    Contributor

    There is no timeout enforced by parse-server, the only timeout you'll hit will probably be from the http server configuration.

  3. joaoarmando commented on Nov 19, 2018

    @joaoarmando

    Hello @flovilmart, I'm having this same problem, can you explain me how to increase the timeout time on the http server you mentioned?

  4. JacobJT commented on Nov 19, 2018

    @JacobJT

    @joaoarmandoo This forum is for issues with the SDK itself, rather than your implementation, so it's not an appropriate place to get that kind of help. Try stack exchange. And for a little direction, the http server is actually nothing to do with parse-sever itself. Parse-Server gets mounted to your http server, it's something totally separate, and every one of us could have something entirely different. For example, I deployed parse-server on AWS using Elastic Beanstalk, and my EC2 Instances I run it on use ngrok as the http server. So, when I needed to update my server configurations, it came down to learning how to modify ngrok, totally different.

    So, post your set up on stackexchange and someone might be able to help you there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions