简体   繁体   English

客户帐户数据API(通过Aggcat)始终返回400个响应代码

[英]Customer Account Data API (through Aggcat) always returns 400 response code

I set up an application with the Intuit Customer Account Data API and am running a Rails app using Aggcat gem ( https://github.com/cloocher/aggcat ). 我使用Intuit客户帐户数据API设置了一个应用程序,并且正在使用Aggcat gem( https://github.com/cloocher/aggcat )运行Rails应用程序。 I had to replace my certificate and followed the instructions for OpenSSL found here . 我必须替换证书,并按照此处找到的有关OpenSSL的说明进行操作。 Under My Apps I uploaded the new public certificate and changed the settings on Aggcat to use the new private key file generated with it. 在“我的应用程序”下,我上传了新的公共证书,并更改了Aggcat的设置以使用随其生成的新私钥文件。

I can run client.scope(1) but when I try to run anything else (such as client.institutions) I get a bad request error (400). 我可以运行client.scope(1),但是当我尝试运行其他任何内容(例如client.institutions)时,出现严重的请求错误(400)。 Any ideas what the problem could be? 任何想法可能是什么问题? I've tried re-generating the certificate multiple times and no luck. 我尝试过多次重新生成证书,但是没有运气。

According IPP's site, 根据IPP的网站,

400 - Bad Request represents - If the URL or variables are not in the correct format this error will display. 400-错误的请求表示 -如果URL或变量的格式不正确,则会显示此错误。

Ref - https://developer.intuit.com/docs/0020_customeraccountdata/customer_account_data_api/0700_error_codes 参考-https: //developer.intuit.com/docs/0020_customeraccountdata/customer_account_data_api/0700_error_codes

I've not tried CAD calls using ruby but I use the sample JAVA app(IPP). 我没有尝试使用ruby进行CAD调用,但使用的是示例JAVA应用程序(IPP)。 You can run the sample java app ( by configuring the devkit logger in debug mode) and capture the raw request/response and URL(and parameters) and compare the same which you're getting in your ruby example. 您可以运行示例Java应用程序(通过在调试模式下配置devkit记录器)并捕获原始请求/响应和URL(以及参数),并与在ruby示例中获得的内容进行比较。 That might help you to debug these issues. 这可能有助于您调试这些问题。

Otherwise, you can also try the other two ruby examples which are available here- https://developer.intuit.com/docs/0020_customeraccountdata/devkits 否则,您也可以尝试在此处提供的其他两个ruby示例-https ://developer.intuit.com/docs/0020_customeraccountdata/devkits

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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