Hey,
When trying to get a JSON message I get this error in the console:
“root”: { “insertId”:“6ce794bd-c017-4e13-96dd-6fb6023454fe”“timestamp”:“2019-10-16T08:46:36.411Z”“labels”: { “siteUrl”:“https://www.beitlali.com/_functions/tabledata”“revision”:"2538"“namespace”:“Corvid”“tenantId”:“f55db345-61ca-481c-a65a-1b39e5dc29ec”“viewMode”:“Site” } “sourceLocation”: {} “operation”: { “id”:"1571215596.1921202920912447"“producer”:“backend” }
“jsonPayload”: { “message”:“[”(node:1) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.“]”
}
“severity”:“ERROR”
“receiveTimestamp”:“2019-10-16T08:46:36.685Z”
}
Any idea?
Exactly what it says, it got depreciated.
https://nodejs.org/api/deprecations.html#deprecations_dep0097_makecallback_with_domain_property
See your own error it tells you what you need to do…
Using a domain property in MakeCallback is deprecated.
Use the async_context variant of MakeCallback or the AsyncResource class instead.
What NodeJS are you using through the Wix Package Manager?
Plus, if you do a simple Google search (other search engines can be used!), then you will find that this deprecation message was around last year.
https://www.google.com/search?q=MakeCallback+is+deprecated&oq=MakeCallback+is+deprecated&aqs=chrome…69i57&sourceid=chrome&ie=UTF-8
https://nodejs.org/api/async_hooks.html
https://itnext.io/a-pragmatic-overview-of-async-hooks-api-in-node-js-e514b31460e9