Very Strange, Something on my end or the bubble end for sure.
One More question. We have copied the logic from the chatty app for the backend codeless experience.
We are running into the following error where a messageId is not being passed.
Here is the dump from the top of the print statements in the block coding below.
0:58:24.205 | SERVER_CODE | INFO | [2084] { context: { ___jsonclass: 'com.backendless.servercode.RunnerContext', ___class: 'com.backendless.servercode.RunnerContext', deviceType: 'JS', crossHandlerData: {}, userLocale: 'en', httpHeaders: null, userId: 'DED08AE0-385B-4A4D-B49C-BA4793F06D07', eventContext: null, userRoles: [ 'AuthenticatedUser', 'JSUser' ], userToken: '059AFEC9-8DD6-4691-B35B-ADCD33370593', prematureResult: null, missingProperties: {}, appId: '0860C0F4-E6B1-5759-FF78-D09E15245600', httpResponseHeaders: {}, userRole: [ 'AuthenticatedUser', 'JSUser' ] }, message: 'testing out the chat', publishOptions: { ___jsonclass: 'com.backendless.messaging.PublishOptions', ___class: 'com.backendless.messaging.PublishOptions', WP_TOAST_PARAMETER_TAG: 'wp-parameter', IOS_BADGE_TAG: 'ios-badge', templateValues: null, IOS_IMMEDIATE_PUSH: 'ios_immediate_push', ANDROID_TICKER_TEXT_TAG: 'android-ticker-text', WP_TOAST_SUBTITLE_TAG: 'wp-subtitle', IOS_SUBTITLE_TAG: 'ios-alert-subtitle', WP_RAW_DATA: 'wp-raw', publisherId: null, IOS_TITLE_TAG: 'ios-alert-title', WP_TILE_BACK_TITLE: 'wp-backTitle', MESSAGE_ID: 'messageId', ANDROID_LARGE_ICON_TAG: 'android-large-icon', WP_TILE_COUNT: 'wp-count', WP_CONTENT_TAG: 'wp-content', subtopic: null, ANDROID_ATTACHMENT_URL_TAG: 'android-attachment-url', WP_TYPE_TAG: 'wp-type', headers: {}, IOS_SOUND_TAG: 'ios-sound', ANDROID_CONTENT_SOUND_TAG: 'android-content-sound', OSX_SUBTITLE_TAG: 'osx-alert-subtitle', WP_BADGE_TAG: 'wp-badge', WP_TILE_BACKGROUND_IMAGE: 'wp-backgroundImage', ANDROID_SUMMARY_SUBTEXT_TAG: 'android-summary-subtext', OSX_TITLE_TAG: 'osx-alert-title', ANDROID_IMMEDIATE_PUSH: 'android_immediate_push', ANDROID_CONTENT_TITLE_TAG: 'android-content-title', ANDROID_ACTION_TAG: 'android-action', TEMPLATE_NAME: 'template_name', NOTIFICATION_ID: 'notificationId', IOS_ALERT_TAG: 'ios-alert', INLINE_REPLY: 'inline_reply', IOS_RICH_MEDIA_URL_TAG: 'ios-rich-media-url', WP_TILE_BACK_BACKGROUND_IMAGE: 'wp-backImage', WP_TILE_BACK_CONTENT: 'wp-backContent', WP_TITLE_TAG: 'wp-title', MESSAGE_TAG: 'message', ANDROID_CONTENT_TEXT_TAG: 'android-content-text' }, deliveryOptions: { ___jsonclass: 'com.backendless.messaging.DeliveryOptions', ___class: 'com.backendless.messaging.DeliveryOptions', repeatExpiresAt: null, publishAt: null, repeatEvery: 0, pushSinglecast: [], pushBroadcast: 0, publishPolicy: 'BOTH', segmentQuery: null } }
0:58:24.257 | SERVER_CODE | ERROR | [2084] TypeError: Cannot read property 'messageId' of undefined at getObjectProperty (/opt/backendless/repo/0860c0f4-e6b1-5759-ff78-d09e15245600/files/servercode/CODELESS/default/PRODUCTION/handlers/messaging/generic/afterPublish.js:5:18) at Object. (/opt/backendless/repo/0860c0f4-e6b1-5759-ff78-d09e15245600/files/servercode/CODELESS/default/PRODUCTION/handlers/messaging/generic/afterPublish.js:33:305) at Domain. (/usr/local/lib/node_modules/backendless-coderunner/lib/server-code/runners/tasks/invoke-handler.js:118:38) at Domain.run (domain.js:373:15) at /usr/local/lib/node_modules/backendless-coderunner/lib/server-code/runners/tasks/invoke-handler.js:117:7 at new Promise () at execute (/usr/local/lib/node_modules/backendless-coderunner/lib/server-code/runners/tasks/invoke-handler.js:52:10) at executeTask (/usr/local/lib/node_modules/backendless-coderunner/lib/server-code/runners/tasks/executor.js:82:7) at Object.executor.execute (/usr/local/lib/node_modules/backendless-coderunner/lib/server-code/runners/tasks/executor.js:191:22) at executeTask (/usr/local/lib/node_modules/backendless-coderunner/lib/server-code/runners/cloud-worker.js:65:44)
How does the chatty example get the messageId. What am I doing wrong here.