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

Fix fcm credentials #742

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Fix fcm credentials #742

merged 1 commit into from
Feb 1, 2024

Conversation

abnegate
Copy link
Member

What does this PR do?

Fix FCM param serverKey -> serviceAccountJSON

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)

Related PRs and Issues

(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

Copy link

vercel bot commented Jan 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 2:52am
console-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 2:52am
console-preview-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 2:52am

Copy link
Contributor

@stnguyen90 stnguyen90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested an upload but got the following error:

appwrite  | [Error] Timestamp: 2024-01-26T17:36:16+00:00
appwrite  | [Error] Method: POST
appwrite  | [Error] URL: /v1/messaging/providers/fcm
appwrite  | [Error] Type: TypeError
appwrite  | [Error] Message: {closure}(): Argument #3 ($serviceAccountJSON) must be of type ?array, string given, called in /usr/src/code/vendor/utopia-php/framework/src/App.php on line 531
appwrite  | [Error] File: /usr/src/code/app/controllers/api/messaging.php
appwrite  | [Error] Line: 619

so either the API needs to be updated or the console does.

@abnegate
Copy link
Member Author

I tested an upload but got the following error:

appwrite  | [Error] Timestamp: 2024-01-26T17:36:16+00:00
appwrite  | [Error] Method: POST
appwrite  | [Error] URL: /v1/messaging/providers/fcm
appwrite  | [Error] Type: TypeError
appwrite  | [Error] Message: {closure}(): Argument #3 ($serviceAccountJSON) must be of type ?array, string given, called in /usr/src/code/vendor/utopia-php/framework/src/App.php on line 531
appwrite  | [Error] File: /usr/src/code/app/controllers/api/messaging.php
appwrite  | [Error] Line: 619

so either the API needs to be updated or the console does.

@stnguyen90 This was fixed in the API 👍

@stnguyen90
Copy link
Contributor

@stnguyen90 This was fixed in the API 👍

I see. I found the related PR: appwrite/appwrite#7484.

@TorstenDittmann TorstenDittmann merged commit 757a327 into 1.5.x Feb 1, 2024
4 of 5 checks passed
@TorstenDittmann TorstenDittmann deleted the fix-fcm-credentials branch February 1, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants