Suddenly we are getting lots of errors with our event handlers and our app is not functioning.
The event handler is fetching an item from our database weekly_slots.
App ID 4A47197B-AE30-FA84-FF56-0071F4010900
As you can see, we are first prining the response item, and then we are printing the property we need alter.
2022-07-19 19:28:04,329 | SERVER_CODE | INFO | [3612387] {
___jsonclass: 'com.backendless.commons.persistence.EntityDescription',
___class: 'com.backendless.commons.persistence.EntityDescription',
name: 'weekly_slots',
fields: {
___jsonclass: 'weekly_slots',
___class: 'weekly_slots',
sdr: 'AlexMarino',
parent_name: 'Test-Claudia',
timezone: 'GMT+1',
subject: 'CodingScratch',
rubric: null,
ownerId: null,
contact_id: 'cont_aZhY34mOW26gEYhQZY4MAnos4B4lHsvQNULPG9aCRPa',
lastReschedule: null,
email2: null,
student_name: 'Bob',
noReschedules: null,
school: 'Brilliant Grades',
slots_sort: '/Sat...16.30',
state: null,
lead_id: 'lead_nDk64VfTkYrF2bsdGVjqDn0uIA4Hnew9Uo0pAZCqn0K',
email: 'mariaclitsas@gmail.com',
objectId: 'D38FDE5B-BC17-4052-9710-0949E8DC743B',
chargebee: '169lZzSh2uDXk3e2o',
group: 'MAX1',
timestamp: 2021-01-09T15:30:00.000Z,
smsCount: null,
created: 2022-04-12T20:38:52.000Z,
churn_reason: null,
lastHmwrk: '2022-05-10',
url: 'https://www.brilliantgrades.com/',
tutor: 'NicolasTutor Live',
sms_id: null,
phone: '+447418341725',
service: 'Tutoring',
grade: 'Grade 6',
tagline: 'World-Class Online Learning',
region: 'EU',
updated: 2022-07-19T19:28:03.628Z,
uniqueId: 'cont_aZhY34mOW26gEYhQZY4MAnos4B4lHsvQNULPG9aCRPa | MAX1-GRADE 6-CODINGSCRATCH-SAT15:30-GMT-NICOLASTUTOR LIVE',
startDate: 2022-04-12T20:38:52.000Z,
lastSession: '2022-05-10',
status: 'enrolled',
slot_slug: 'MAX1-GRADE 6-CODINGSCRATCH-SAT15:30-GMT-NICOLASTUTOR LIVE'
}
}
2022-07-19 19:28:04,329 | SERVER_CODE | INFO | [3612387] undefined
2022-07-19 19:28:04,455 | SERVER_CODE | INFO | [3612387] TypeError: Cannot read property 'replace' of undefined
at Object
As you can see, the slot_slug property exists in the Response Item but is not captured at the next step.
This is a repeat of an issue we faced when you were doing the virtualization project, see this ticket for all the detail: Event handler not recognizing response item property