You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: skip.lib.ErrorException: kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 9: Expected EOF after parsing, but had P instead at path: $JSON input: Android Plan 1
"plan_name_input": title, // Android Plan 1
Failure in plan_name_input parameter
tested rpc function
CREATE OR REPLACEFUNCTIONpublic.insert_education_plan(
plan_name_input text,
start_date_input date,
end_date_input date,
details_input text,
expenses_input text
)
RETURNS VOID
LANGUAGE plpgsql
AS $function$
DECLARE
farm_id_input UUID;
plan_id_result UUID;
detail_result RECORD;
expense_result RECORD;
details_jsonb jsonb;
expenses_jsonb jsonb;
BEGIN-- convert to jsonb from text
details_jsonb := details_input::jsonb;
expenses_jsonb := expenses_input::jsonb;
-- ... etc
RETURN;
EXCEPTION
WHEN OTHERS THEN
RAISE;
END;
$function$;
Removing whitespace worked fine.
title.replacingOccurrences(of:"", with:""),
The text was updated successfully, but these errors were encountered:
Sending Requests Containing Whitespace
An error occurs when a parameter of type String contains a whitespace string.
This problem did not occur when converted to json format and then converted in kotlin.
swift code
error log
"plan_name_input": title, // Android Plan 1
Failure in plan_name_input parameter
tested rpc function
Removing whitespace worked fine.
The text was updated successfully, but these errors were encountered: