Getting error while makeing bridges request

Hi,
I am getting the following error while registering my URL

{
“timestamp”: “2021-12-23T12:56:09.714+0000”,
“path”: “/v1/bridges”,
“status”: 500,
“error”: “Internal Server Error”,
“message”: “JSON decoding error: Cannot deserialize instance of java.lang.String out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.lang.String out of START_OBJECT token\n at [Source: (io.netty.buffer.ByteBufInputStream); line: 1, column: 10] (through reference chain: java.util.Properties[“error”])”,
“requestId”: “363c3c18-901”
}

I am getting “Token verification failed” code: 1401 if I use an expired token… which means API is working on my end

Kindly help me out… I still can’t bridge my URL

@nxtdesigns unable to understand the last message. Can you please share the request body as well.

Step 1: How I am getting the access token

Step 2: Send Birdge URL reqeust

This is that I am getting

Sorry I have to make two posts as I am not allowed to upload 2 images in one post

Please send screenshot of the body / request

We are able to register the URL, are you using the curl mentioned here as is?

I am using the same link… kindly check the video

@nxtdesigns Can you please confirm your url method/ http method in post man?

try with below curl,

curl --location --request PATCH ‘https://dev.abdm.gov.in/devservice/v1/bridges
–header ‘Content-Type: application/json’
–header ‘Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDA2NzY1NTYsImlhdCI6MTY0MDY3NTk1NiwianRpIjoiMzk5MjExMzgtZjEyZC00ZDM2LWI1YjEtYjA1MjJmYWM4N2JhIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIxYmQ0MzdkMS1jMzlkLTQ2NWYtOTYzMi00ZDhmNjIzNGMyNDAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJURVNUXzAwMiIsInNlc3Npb25fc3RhdGUiOiJkNWFhYzk0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fae8fea67893e5eee4db60111b889c0e3c5941a56e1ca3’
–data-raw ‘{
“url”: “https://webhook.site/6a08a506-2c57-4af0-80b3-4bab9a723e5c
}’

if issue still exists,
kindly revert with your curl.

Thanks

Can’t import your curl, so I try to cut short it… but still can’t import

trying with below:

curl --location --request PATCH ‘https://dev.abdm.gov.in/devservice/v1/bridges
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer your-access-token-from-gateway-session’
–-header ‘Cookie: TS011c04bd=01115a1c90a2c70887d61689bca4ec7a61273fa3e4e745015fdd8c550af3fae8fea67893e5eee4db60111b889c0e3c5941a56e1ca3’
–-data-raw ‘{
“url”: “https://webhook.site/6a08a506-2c57-4af0-80b3-4bab9a723e5c
}’

Some how i managed to improt the curl but now still getting the same error
my curl is

curl --location --request PATCH ‘https://dev.abdm.gov.in/devservice/v1/bridges’ \

–header ‘Content-Type: application/json’ \

–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDA2NzkwMDUsImlhdCI6MTY0MDY3ODQwNSwianRpIjoiMGQ3MDk5NTEtMDZiOC00ZjU0LWE1MGMtMzMxNWFkYmQyYmZkIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIwMmYzM2Y1Yi1kZjkzLTQ2MjktYjNhMS1hZGJiMGQ2NzYzMDYiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxMzk0Iiwic2Vzc2lvbl9zdGF0ZSI6IjU4ZTk0YmQ0LTA2MzgtNDUxZS05YWVkLTc1NjFkZDMwYzhiOCIsImFjciI6IjEiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiaGl1Iiwib2ZmbGluZV9hY2Nlc3MiLCJoZWFsdGhJZCIsIk9JREMiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAxMzk0Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SWQiOiJTQlhfMDAxMzk0IiwiY2xpZW50SG9zdCI6IjEwLjIzMy42Ny45NiIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDEzOTQiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY3Ljk2In0.eVoBoiuGQrrxZl1Ix_LBlrA40L_25kkBio8CY4xcBh3xICxsRvt7B6EB8m6k3nTVBdIUOANm33llCONDVXeqeTO-JjhTfI9Vy0883Vz-i5K0PWJPCdcprWwJytjBUkwklLrl_hcJL0DWgfv6NZ2jKnUdeKLbXOWEPVSEiHAu-jVUU0LE5C5JkzuQQngDtx0XD8ANxo5Zaxn2IXuHhmHC60l9FkUM-7gCbvoQIq7RjvmOQRv47amiz9R7XJ4t2T8D6FO1R14RSKGzOoC3UWXyTuAx5XDN88SYH74_cF5VdHaPAZCk9gmY8_dNJqr2p5mSGZ1918yDi7Q6My7E0jECZQ’ \

–header ‘Cookie: TS011c04bd=01115a1c90a2c70887d61689bca4ec7a61273fa3e4e745015fdd8c550af3fae8fea67893e5eee4db60111b889c0e3c5941a56e1ca3; TS011c04bd=01115a1c90a475d3154067d9b764ea50aa66e1aeee9e3b8707db7389e20fcc664d52ec7ff3a2bd312b8e0c897986ec1a45c334c937’ \

–data-raw '{

“url”: “https://webhook.site/6a08a506-2c57-4af0-80b3-4bab9a723e5c

}’

@nxtdesigns,

is this public on youtube?

@nxtdesigns

try now

thanks

Sorry but its still the same

curl --location --request PATCH ‘https://dev.abdm.gov.in/devservice/v1/bridges
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NDA2ODI1OTEsImlhdCI6MTY0MDY4MTk5MSwianRpIjoiZmEyYjkxMGYtZGUyMS00NzRhLTgzYjItNjBjNTgxMjFmOGZlIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiIwMmYzM2Y1Yi1kZjkzLTQ2MjktYjNhMS1hZGJiMGQ2NzYzMDYiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxMzk0Iiwic2Vzc2lvbl9zdGF0ZSI6IjRiOGY1ODY2LTk2OTQtNGM0Zi1hNDU1LTY1ZTA0MzgyYmY3MSIsImFjciI6IjEiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiaGl1Iiwib2ZmbGluZV9hY2Nlc3MiLCJoZWFsdGhJZCIsIk9JREMiLCJoaXAiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAxMzk0Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SWQiOiJTQlhfMDAxMzk0IiwiY2xpZW50SG9zdCI6IjEwLjIzMy42OS4xMzgiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsInByZWZlcnJlZF91c2VybmFtZSI6InNlcnZpY2UtYWNjb3VudC1zYnhfMDAxMzk0IiwiY2xpZW50QWRkcmVzcyI6IjEwLjIzMy42OS4xMzgifQ.XYe3atCuspG5t0HPMm9Vl6u5g9m0ni2DMsAO6MjqqUUZVv_WuhymFkdC8euxRq5Ok3-T2UpPvfvoqCPXOv9y2xe4gn4Ff9KrTAKpDGPoLok9PgLvn3BvAm7JFptuP9z3LiuS1P2ncPdlXbpV7FJPKK_BrGxVu9gGSNCmQxQZQIOrAMVqmq_HI9SaGzTJxRGhC6nexOMqb0fLq76A-R2lTAmCD6nrGfwnEyy01LGCDEToLDncJq1eefWNXRAa91bZp3_c6rntAg_7oRbDgLyIMd6yp0F6p37XQxd2Fl0NAI5KNARfjKYUBDpzjXJSPC4Rb_iZC8Yyh3Cbr-MmjUln_g’
–header ‘Cookie: TS011c04bd=01115a1c90bf28d722c5c2b257bc5131debd188791b6362e1c86f3d832c4da310bf9e4fea6d1abf7e05a323e44daf6f70b9b612545’
–data-raw ‘{
“url”: “https://webhook.site/93da300b-8f97-4d34-aa89-aa082429524b
}’

its public youtube video

Following is the result for an expired token

{
“error”: {
“code”: 1401,
“message”: “Token verification failed”
}
}

Thanks, I got new credentials for my account… now its working

1 Like