-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Unable to call Cloude code functions from web hook parse server 7.4.0 #9573
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
Thanks for opening this issue!
|
Could you please provide an example code to reproduce this issue? |
Hey, I had exactly the same log while setting up test environment locally. What solved it for me was that, on the top of the test setup, I had: When I removed it, all worked correctly. I found this here: |
@Jakub-Plan-d-k That comment you are referring to is correct. Why did you add it in the first place? Is there an example or docs where this is shown, so we can remove it? |
@mtrezza looking at the OP you can see ‘lib/browser’ being used in the server so removing those imports should fix it. I think we can close this |
@mtrezza I had a local setup for some time now, but I have not found any references on how to setup the test environment. I referred to chatGPT to prepare me something to work with and step by step I figured it out from there successfully. The script it generated contained this line. |
@Jakub-Plan-d-k would our parse-server-example have helped? |
New Issue Checklist
Issue Description
TypeError: Cannot read properties of undefined (reading 'currentInstallationId')
at Object.request (c:\sessioncloud\node_modules\parse\lib\browser\RESTController.js:245:54)
at Object.run (c:\sessioncloud\node_modules\parse\lib\browser\Cloud.js:114:36)
at Object.run (c:\sessioncloud\node_modules\parse\lib\browser\Cloud.js:60:52)
at c:\sessioncloud\index.js:193:40
at Layer.handle [as handle_request] (c:\sessioncloud\node_modules\express\lib\router\layer.js:95:5)
at next (c:\sessioncloud\node_modules\express\lib\router\route.js:144:13)
at auth (c:\sessioncloud\index.js:99:12)
at Layer.handle [as handle_request] (c:\sessioncloud\node_modules\express\lib\router\layer.js:95:5)
at next (c:\sessioncloud\node_modules\express\lib\router\route.js:144:13)
at Route.dispatch (C:\sessioncloud\node_modules\express\lib\router\route.js:114:3) {stack: 'TypeError: Cannot read properties of undefine…de_modules\express\lib\router\route.js:114:3)', message: 'Cannot read properties of undefined (reading 'currentInstallationId')'}
Steps to reproduce
Call cloud code function from web hook
Actual Outcome
TypeError: Cannot read properties of undefined (reading 'currentInstallationId')
Expected Outcome
Cloud code function executes
Environment
Development
Server
7.4.0
Windows 10
Database
MongoDB
MongoDB Atlas
Client
Node js
Logs
The text was updated successfully, but these errors were encountered: