เป็นเวลาหลายเดือนแล้วที่รูทีน OAuth2 ของฉันทำงานได้อย่างสมบูรณ์แบบ รูทีน OAuth2 สร้างโทเค็นใหม่เพื่อให้ฉันสามารถดำเนินการ API ได้
ทันใดนั้นเมื่อสัปดาห์ที่แล้ว ฉันเริ่มได้รับข้อผิดพลาดต่อไปนี้:
Charset [empty string]
ErrorDetail I/O Exception: peer not authenticated
Filecontent Connection Failure
Header [empty string]
Mimetype Unable to determine MIME type of file.
Responseheader
struct [empty]
Statuscode Connection Failure. Status code unavailable.
Text YES
ฉันใช้ Coldfusion 10 และไม่ได้เปลี่ยนแปลงสิ่งใดในสภาพแวดล้อมการทดสอบของฉันเป็นเวลาหลายเดือนแล้ว ดังนั้นการเปลี่ยนแปลงจะต้องมาจากจุดสิ้นสุดของ PayPal
ฉันใช้การโทร http ต่อไปนี้:
<cfset clientid = "***">
<cfset secret = "***">
<cfhttp method="post" url="https://api.sandbox.paypal.com/v1/oauth2/token" result="result">
<cfhttpparam type="header" name="Content_Type" value="application/json">
<cfhttpparam type="formfield" name="grant_type" value="client_credentials">
<cfhttpparam type="header" name="Authorization" value="Basic #ToBase64(clientid & ":" & secret)#">
</cfhttp>
ใครสามารถช่วยฉันแก้ปัญหานี้ได้อย่างไร