In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you "how to use transaction code SMICM to analyze ABAP code initiated HTTP request errors", the content is easy to understand, well-organized, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use transaction code SMICM to analyze ABAP code initiated HTTP request errors" this article.
When I use CL_HTTP_CLIENT to send a request to a url on a public network, I encounter an error: ICM_HTTP_SSL_PEER_CERT_UNTRUSTED
The error is thrown from this ABAP code:
CALL METHOD lo_http_client- > get_last_errorIMPORTINGcode = lv_sysubrcmessage = ev_error_message. "BREAK-POINT.WRITE: / 'error:', ev_error_message.
With only this mistake, you may find it difficult to find the root cause of the problem.
The following is to use the transaction code SMICM to identify the root cause of the problem. Goto- > Trace Level- > Set sets the trace level:
Set to the highest level 3:
Then click Trace File- > Reset to empty the trace file generated so far, so that the log file generated after the HTTP error is reproduced is small and easy to analyze:
Re-execute the ABAP program that caused the HTTP error, then go back to the transaction code SMICM and select Trace File- > Display All:
Then save the displayed trace file locally, and you can start the analysis.
Look at the log file and quickly find the root cause of the problem because the SSL certificate corresponding to c4c.saphybriscloud.cn is missing on the Netweaver server.
Verification result header:
[Thr 140133716416256] Verification errors
[Thr 140133716416256] The chain of certificates is incomplete or untrusted, missing certificate of
[Thr 140133716416256] CN=DigiCert Global Root CA, OU= www.digicert.com, O=DigiCert Inc, C=US
[Thr 140133716416256] Verified certificate:
[Thr 140133716416256] Subject: CN=*.c4c.saphybriscloud.cn, OU=SAP Cloud Managed Services, O=SAP, L=Walldorf, SP=Baden-Wuerttemberg, C=DE
[Thr 140133716416256] Issuer: CN=DigiCert SHA2 Secure Server CA, O=DigiCert Inc, C=US
This problem can be solved by opening c4c.saphybriscloud.cn in a browser, exporting certificate, and then importing it into the Netweaver server with the transaction code STRUST.
The above is all the contents of the article "how to use the transaction code SMICM to analyze the errors of HTTP requests initiated by ABAP code". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.