Skip to content
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

Unable to call Cloude code functions from web hook parse server 7.4.0 #9573

Open
sessiontalk opened this issue Jan 27, 2025 · 2 comments
Open
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@sessiontalk
Copy link

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

  • Parse Server version: 7.4.0
  • Operating system: Windows 10
  • Local Host`

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: ``
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): MongoDB Atlas

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): Node js

Logs

Copy link

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@mtrezza
Copy link
Member

mtrezza commented Jan 28, 2025

Could you please provide an example code to reproduce this issue?

@mtrezza mtrezza added the type:bug Impaired feature or lacking behavior that is likely assumed label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

2 participants