cancel
Showing results for 
Search instead for 
Did you mean: 

cap service is running locally and using rest client its okay. after deploy , postman its not .

amitj96
Explorer
0 Kudos
80

i am getting below log captured while calling cap service using postman.

``` 

display_materials.cfapps.us10-001.hana.ondemand.com - [2025-02-10T04:54:23.813378808Z] "POST /odata/v4/catalog/Interactions_Items HTTP/1.1" 401 0 22 "-" "PostmanRuntime/7.43.0" "10.0.136.1:39522" "10.32.2.7:61014" x_forwarded_for:"54.86.50.139, 10.0.136.1" x_forwarded_proto:"https" vcap_request_id:"eae1b689-9ee0-404e-6819-604d2cf23287" response_time:0.018047 gorouter_time:0.000070 app_id:"c4deb29f-9705-48a9-a5ce-43032da1ff86" app_index:"0" instance_id:"ddaefdd7-01a1-40a8-5295-5671" failed_attempts:0 failed_attempts_time:"-" dns_time:0.000000 dial_time:0.000389 tls_time:0.004133 backend_time:0.017977 x_cf_routererror:"-" x_correlationid:"-" tenantid:"-" sap_passport:"-" x_scp_request_id:"afd53080-5b9a-4aa9-8c35-84f278e20cb6-67A9867F-E3FBA3" x_cf_app_instance:"-" x_forwarded_host:"-" x_custom_host:"-" x_ssl_client:"-" x_ssl_client_session_id:"-" x_ssl_client_verify:"-" x_ssl_client_subject_dn:"-" x_ssl_client_subject_cn:"-" x_ssl_client_issuer_dn:"-" x_ssl_client_notbefore:"-" x_ssl_client_notafter:"-" x_cf_forwarded_url:"-" traceparent:"-" true_client_ip:"-" x_request_id:"-" x_b3_traceid:"eae1b6899ee0404e6819604d2cf23287" x_b3_spanid:"6819604d2cf23287" x_b3_parentspanid:"-" b3:"eae1b6899ee0404e6819604d2cf23287-6819604d2cf23287"

```

i decoded recieved token i am getting this   

```

 "scope": [
"uaa.resource"
], 

```

```

"ext_attr": {
"enhancer": "XSUAA",
"subaccountid": "1e8c534c-74c5-5656f-d5fa7de39a19",
"zdn": "80efaa95trial"
},
"sub": "sb-material_display-hdimaterial_t371480!t371480",
"authorities": [
"uaa.resource"
],
"scope": [
"uaa.resource"
],
"client_id": "sb-material_display-hdimaterial_t371480!t371480",
"cid": "sb-material_display-hdimaterial_t371480!t371480",
"azp": "sb-material_display-hdimaterial_t371480!t371480",
"grant_type": "client_credentials",
"rev_sig": "71ffd21",
"iat": 1739161547,
"exp": 1739204747,
"iss": "https://80efaa95trial.authentication.us10.hana.ondemand.com/oauth/token",
"zid": "1e8c534c-74c5-4f59-8759-d5fa7de39a19",
"aud": [
"sb-material_display-hdimaterial_t371480!t371480",
"uaa"
]
}

```

i added roles .. still unable to receive response ,,  i tried with grant type password that is also not working , i am getting 401 response. local environment using  rest client everything working

Accepted Solutions (0)

Answers (0)