Getting "400 Bad Request" only for IOS device having latest version (14.7.1)
Question

Posting the stack trace for the error


400 Bad Request
   at ssOnboarding_MIS.CcValidateMFAOnBoarding.ActionPostValidate(HeContext heContext, ICcValidateMFAOnBoardingCallbacks _callbacks, STPostValidateRequestStructure inParamRequest, String inParamparentFlowId, STPostValidateResponseStructure& outParamResponse)

I am getting this issue only in my Iphone, while it is working fine in Android, emulator and even in earlier  iOS version 


This is a blocker for my deliverables, would appreciate it if I can get quick help for the same. 

Champion

Hi Shubhi,

Can you share a detailed Mobile Log from ServiceCenter.

Also, are you using any MultiFactorAuth Service Component or something which is called in OnAppReady etc.

Or Any Plugins etc.
- Does the same with the Actual Device?

More often this would help folks here to guess & address the same.

- Assif

Sure, adding the complete stack trace. Pasting the series of errors i am getting when performing the same action in my iOS device


 Onboarding_MIS

REST (Consume)

400 Bad Request

eSpaceVer: Id=177, PubId=0, CompiledWith=11.10.7.060000
RequestUrl: http://localhost/Onboarding_MIS/serviceapi/verifyMFAOnboarding (Method: POST)
AppDomain: /LM/W3SVC/1/ROOT/Onboarding_MIS-52-132748995979529308
FilePath: C:\...\PS\running\Onboarding_MIS.0613815995\
ClientIp: ::1
Locale: en-US
DateFormat: MM-dd-yyyy
PID: 2348 ('w3wp', Started='7/23/2021 7:55:34 PM', Priv=850Mb, Virt=2110932Mb)
TID: 20
Thread Name:
.NET: 4.0.30319.42000

400 Bad Request
   at ssOnboarding_MIS.CcValidateMFAOnBoarding.ActionPostValidate(HeContext heContext, ICcValidateMFAOnBoardingCallbacks _callbacks, STPostValidateRequestStructure inParamRequest, String inParamparentFlowId, STPostValidateResponseStructure& outParamResponse)

2. 

 Onboarding_MIS

Service API

400 Bad Request

eSpaceVer: Id=177, PubId=0, CompiledWith=11.10.7.060000
RequestUrl: http://localhost/Onboarding_MIS/serviceapi/verifyMFAOnboarding (Method: POST)
AppDomain: /LM/W3SVC/1/ROOT/Onboarding_MIS-52-132748995979529308
FilePath: C:\...\PS\running\Onboarding_MIS.0613815995\
ClientIp: ::1
Locale: en-US
DateFormat: MM-dd-yyyy
PID: 2348 ('w3wp', Started='7/23/2021 7:55:34 PM', Priv=850Mb, Virt=2110932Mb)
TID: 20
Thread Name:
.NET: 4.0.30319.42000

400 Bad Request
at ssOnboarding_MIS.CcValidateMFAOnBoarding.ActionPostValidate(HeContext heContext, ICcValidateMFAOnBoardingCallbacks _callbacks, STPostValidateRequestStructure inParamRequest, String inParamparentFlowId, STPostValidateResponseStructure& outParamResponse)
at ssOnboarding_MIS.ServiceAPIController.Flows.ActionverifyMFAOnboarding(HeContext heContext, STPostValidateRequestStructure inParamRequest, String inParamUniqueId, STPostValidateResponseStructure& outParamResponse)
   at ssOnboarding_MIS.ServiceAPIController.ServiceAPIverifyMFAOnboarding()


3. 

 - Zest_Banking

400 Bad Request

eSpaceVer: Id=181, PubId=0, CompiledWith=11.10.7.060000
RequestUrl: https://tst01.lcncsandbox.com/Zest_Banking/screenservices/Zest_Banking/RetailOnboarding/VerifyMFA/ServiceAPIverifyMFAOnboarding (Method: POST)
AppDomain: /LM/W3SVC/1/ROOT/Zest_Banking-55-132749718790251202
FilePath: C:\...\PS\running\Zest_Banking.01940106328\
ClientIp: 106.200.207.135
Locale: en-US
DateFormat: MM-dd-yyyy
PID: 2348 ('w3wp', Started='7/23/2021 7:55:34 PM', Priv=850Mb, Virt=2110932Mb)
TID: 15
Thread Name:
.NET: 4.0.30319.42000

400 Bad Request
at ssZest_Banking.RsseSpaceOnboarding_MIS.Onboarding_MISServiceAPIClients.verifyMFAOnboarding(HeContext heContext, STPostValidateRequestStructure inParamRequest, String inParamUniqueId, STPostValidateResponseStructure& outParamResponse)
at ssZest_Banking.RsseSpaceOnboarding_MIS.verifyMFAOnboarding(HeContext heContext, IRecord inParamRequest, String inParamUniqueId, IRecord& outParamResponse)
at ssZest_Banking.ServiceAPIs.ServiceAPIverifyMFAOnboarding(HeContext heContext, STPostValidateRequestStructure inParamRequest, String inParamUniqueId, STPostValidateResponseStructure& outParamResponse)
at ssZest_Banking.ScreenServices.Zest_Banking_RetailOnboarding_VerifyMFA_Controller.<ServiceAPIverifyMFAOnboarding>b__2(HeContext heContext, String screenName, JObject screenModel, JObject inputParameters, JObject clientVariables)
   at OutSystems.RESTService.Controllers.ScreenServicesApiController.endpoint(String input, String endpointName, String apiVersion, EndpointImplementationDelegate implementation)


Champion

Thanks,
Can you share the REST API Log for any one of them which returns 400?
Refer to the below document to set up the logging level for the REST API &then you can easily trace what is missing with the request when you call it.
Maybe a header or auth-key or any required param.

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/Set_the_logging_level_of_REST_and_SOAP_integrations


Once setup > you can goto Monitoring > Integrations to view the request & response data

Thanks Assif, Done. Below is the trace. When I am directly hitting the API it works well and also in emulators and Android so I doubt if something is missing in the API.


b5cce0a6-295a-465d-82ce-a866cfaf6dfd

09-02-2021 09:04:03

c834f5cd-8b67-4d2a-88bc-9814ac38d025

Onboarding_MIS

REST (Consume)

ValidateMFAOnBoarding.PostValidate

400 Bad Request

400 Bad Request
   at ssOnboarding_MIS.CcValidateMFAOnBoarding.ActionPostValidate(HeContext heContext, ICcValidateMFAOnBoardingCallbacks _callbacks, STPostValidateRequestStructure inParamRequest, String inParamparentFlowId, STPostValidateResponseStructure& outParamResponse)

POST https://4vhaav4grb.execute-api.us-east-1.amazonaws.com/dev/bff-service/orchestration/mfa/validate?usage=email HTTP/1.1
User-Agent: OutSystemsPlatform
Content-Type: application/json; charset=UTF-8
parentFlowId: shubs.jan+240@gmail.com
Host: 4vhaav4grb.execute-api.us-east-1.amazonaws.com
Content-Length: 56

{"requestId":"Shubs+240@gmail.com","value":"408832"}

HTTP/1.1 400 Bad Request
Connection: keep-alive
x-amzn-RequestId: 02122496-517e-476e-aa7f-8a37f401270a
x-amzn-Remapped-content-length: 0
x-envoy-upstream-service-time: 54
x-amz-apigw-id: FBv8lGQ7IAMFTjg=
x-amzn-Remapped-server: istio-envoy
X-Amzn-Trace-Id: Root=1-61309383-3e5f09f7619f0abe57e35380
x-amzn-Remapped-date: Thu, 02 Sep 2021 09:04:03 GMT
Content-Length: 0
Content-Type: application/json
Date: Thu, 02 Sep 2021 09:04:03 GMT

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.