Deprecation Error when attempting HTTP call external source

I am trying to create a simple API to my backend, and got this error:

(node:1) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.

I reverted the backend .js file to the standard placeholder file you get when adding http-functions.js, - with the get_example function:

export function get_example(request) {

and am still getting this error when sending the request to the Production endpoint.

I’ll add that I still get the correct response - i.e. sending:

https://[mysite]/_functions/example/multiply?leftOperand=3&rightOperand=4

I get back -
{“product”:12}

which means that the code is processing, but in the site monitoring I get -

root":{
“insertId”:“a14e18ea-7e15-4ffe-855e-3afb82b7c0f1”
“timestamp”:“2019-12-04T07:50:40.451Z”
}
“labels”:{
“siteUrl”:“https://[mysite]/_functions/example/multiply?leftOperand=3&rightOperand=4”
“revision”:“393”
“namespace”:“Corvid”
“tenantId”:“782dae9d-3d38-44d2-8dd3-4b5632c76bc6”
“viewMode”:“Site”
“sourceLocation”:{}
}
“operation”:{
“id”:“1575445840.34932014365326418467”
“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-12-04T07:50:40.706Z”
}

The issue here, besides the obvious error i the log, is that when I use my function, which includes an insert into a collection - this fails. The response is correct, but the insert doesn’t run for some reason, and I checked the permissions, those are fine.

I’d appreciate any assistance.

Thanks!

It’s not an error, it’s a warning - decidedly less serious. I think we all get it - I know I do. My understanding is that it stems from one of the Node libraries Wix uses, not something we can control. Either way it’s not the reason your query is failing and you’ll have to post your code for us to troubleshoot that.