简体   繁体   中英

Canvas App makes successful REST API call, but response object is empty

My Canvas App makes a successful REST API call, and in the Monitor log I can see that the response contains the data I'm expecting. However, the variable that the app assigns the response to (via the UpdateContext command) contains no data. What could be causing this?

I figured out the issue. The response object defined in my imported Postman collection had the field names listed as lower case, but the actual response was upper case. My Canvas App wasn't able to resolve the data because the field names are case sensitive. I fixed this by going to the edit page for my Custom Connector, enabling the Swagger Editor, and updating the field names.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM