wixData.get return error

Hi

So I have a simple wixData.get to check if a member id exists in a collection. When I run this in the backend console it gives me the desired null return if the member does not exist however when the site is live it stops the code and just returns an error. The documentation says that it should just return a null if it is not found which is what I want.

export function getMember ( member ) {
let options = {
“suppressAuth” : true ,
“suppressHooks” : true
};
return wixData . get ( “members” , member , options ). then (( memberData ) => { return memberData }). catch (() => { return null })
}

The logs from the live site returns the error and the rest of the code does not run. It needs the null.

Item [d2f38662c0f08a0ed434852ea8f72def] does not exist in collection [members].

Why the difference and can I just get the null?

Show console-log from your live-site.
What do you get as RESULT on your LIVE-SITE ?

UNDEFINED ?

ASYNC-AWAIT-FAILURE ?

How do look like your FRONT-END-CODE ?

Do do not provide enough informations.

THE MORE → INPUT ↔ THE MORE —> OUTPUT <—