-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Parse.Query not working on Heroku (No Such App error) #1613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm having a similar issue, but getting a different version of Parse Error 107. It looks like That-David-Guy is creating a custom function, whereas I'm just using The error:
Here is my function:
|
@aaronbannin Your's might be because I don't think
Or something similar. I don't know, because I can't even get to that point :( |
But let me know @aaronbannin if your query works! |
Making the change has no impact. |
Make sure your parse-server is up to date and that you have serverUrl defined when starting it. |
@bohemima Thanks! The serverUrl config set in the heroku app had a typo in it. I fixed that and it's all working. Seems obvious now. It all seems to be working now. |
That does seem obvious now. Is there a better way to surface this? Perhaps run a test in the build process and output something like "Cloud code not configured properly, check your SERVER_URL config vars"? |
@aaronbannin As in when the server starts up on heroku? Heroku was returning a result, being an error page, but not a 404 code. So I'm not sure how you would pick it up on the parse server end. If you were interested in how I got the typo it was because I changed the heroku app name. The reason for that was as follows
|
@That-David-Guy , my thinking is that the errors were not helpful in diagnosing the issue. In my case, Heroku set a default URL (it was something like "yourapp.com/parse"). |
@aaronbannin Heroku did set the default initially, which I forgot to/didn't realise to update when I changed the heroku app name. So if it is possible to do a check for that I think it would help. I had the wrong mental modal about what parse server was doing. I didn't think Parse.query would actually make a url request to itself (when in cloud code), I assumed it would just call a method directly. Which is why when I got the error back about URLs I assumed it was a different error that was getting masked as a bad url. Googling the heroku error suggested incorrectly that the Heroku Domain was wrong, which is different to parse's SERVER_URL config variable. This also added to my confusion. Thanks again for your quick reply and helpful answers. |
Can anyone shed some light on why when I attempt to implement the above code AS IS (only changing the "Class" to a class name that exists in my database)
});` that I get this error: |
Hi @Jerland2, I've closed this task as my original issue got resolved. You may have better luck opening a new issue or asking on stackoverflow. For your issue I don't know what would be causing that. It doesn't seem like a very useful error. The only thing that stands out is that |
I'm having a similar issue. I have a "hello world" cloud function which just returns: However, my other function which is supposed to send push notifications to specific users is not working. It uses Parse.Query(User) type of thing. I wonder if that's the issue. I was also using useMasterKey: true, but I took it out since the push function isn't working anyway. Any help would be appreciated. Here is my code:
|
@kanersan What do the logs say? Do you know which line is causing the error? Is the query closure failing or the push? |
@aaronbannin
just after defining those variables and that's not the response I got. So I'm assuming those are not the problem. The response I get is:
|
@kanersan that feels like the problem is either in the |
@aaronbannin no I haven't, how can I do that? |
@kanersan I tested using the Parse Dashboard before sending via Cloud Code. You can send pushes from the dashboard, and it's pretty easy to get up and running. https://github.com/ParsePlatform/parse-dashboard Also, here is what I'm using for
|
@aaronbannin thanks for the help. Btw, don't I need to configure this stuff explained here: Because I haven't done that yet... I thought cloud stuff would work out of box for Parse. |
I don't remember touching that at all. Cloud code works out of the box, but
Pushes need some config.
https://github.com/ParsePlatform/PushTutorial/tree/master/iOS
I recall the only difference being that you can't upload the certificates
via the dashboard, so I just made a certificates/ dir in my server code and
set the target.
BTW...we've officially diverted far away from the thread. If you open a new
issue, feel free to tag me so I get notified.
ᐧ
…On Wed, Dec 14, 2016 at 11:18 AM, Kaan Ersan ***@***.***> wrote:
@aaronbannin <https://github.com/aaronbannin> thanks for the help.
Btw, don't I need to configure this stuff explained here:
https://github.com/ParsePlatform/parse-cloud-express
Because I haven't done that yet... I thought cloud stuff would work out of
box for Parse.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1613 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGoF8EcVoHpzl4EF4kgNVaSfmVydcEgrks5rIEEfgaJpZM4IOVx1>
.
--
Thanks,
Aaron Bannin
aaronbannin@gmail.com
|
I'm having the same issue, and chaning the SERVER_URL didn't change anything. |
Environment Setup
Steps to reproduce
Logs/Trace
Queries from the client website to my parse server work fine. Only the cloud code queries fail.
I believe I've followed every step from the migration guide, but googling doesn't return anyone else having this issue. So I guess I missed something?
This is the dependencies from my package.json file in the parse server project:
The text was updated successfully, but these errors were encountered: