Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL does not forward an error message to the app during processing CreateInteractionChoiceSet RPC #3859

Open
GetmanetsIrina opened this issue Feb 15, 2022 · 1 comment
Labels

Comments

@GetmanetsIrina
Copy link

Bug Report

SDL does not forward an error message to the app during processing CreateInteractionChoiceSet RPC

Reproduction Steps
  1. SDL and HMI are started
  2. App is registered
  3. On HMI go to "Setting -> RPC Control -> SyncProxyTester -> CreateInteractionChoiceSet"
  4. Set response resultCode to REJECTED and click "Save" button
  5. App sends RPC CreateInteractionChoiceSet request with vrCommands
  6. HMI responds with error code "REJECTED" and error message
Expected Behavior

SDL sends CreateInteractionChoiceSet(resultCode = "REJECTED", info = <message received from HMI>) response to the mobile app

Observed Behavior

SDL sends CreateInteractionChoiceSet response without info message to the mobile app

MOB->SDL [15-02-2022 12:53:39,993] [rpcFunction: CreateInteractionChoiceSet, sessionId: 1, version: 2, frameType: 1, encryption: false, serviceType: 7, frameInfo: 0, messageId: 5, binaryDataSize: 0] : {"interactionChoiceSetID":1001,"choiceSet":[{"image":{"imageType":"DYNAMIC","value":"icon.png"},"menuName":"Choice1001","vrCommands":["Choice1001"],"choiceID":1001}]} 

SDL->HMI [15-02-2022 12:53:39,996] {"id":28,"jsonrpc":"2.0","method":"VR.AddCommand","params":{"appID":1962457943,"cmdID":1001,"grammarID":1448575975,"type":"Choice","vrCommands":["Choice1001"]}}
 
HMI->SDL [15-02-2022 12:53:39,996] {"jsonrpc":"2.0","error":{"data":{"method":"VR.AddCommand"},"code":4,"message":"Error message"},"id":28}
 
SDL->MOB [15-02-2022 12:53:40,004] [rpcFunction: CreateInteractionChoiceSet, sessionId: 1, version: 2, frameType: 1, encryption: false, serviceType: 7, frameInfo: 0, messageId: 8, binaryDataSize: 0] : {"success":false,"resultCode":"REJECTED"} 
OS & Version Information
Logs

SmartDeviceLinkCore.zip

@GetmanetsIrina
Copy link
Author

Please notice this is a non-regression issue. It's also reproduced on 8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants