คุณกำลังดูเอกสารประกอบของ Apigee Edge
ไปที่เอกสารประกอบของ
Apigee X info
UserNameRequired
ข้อความแสดงข้อผิดพลาด
การติดตั้งใช้งานพร็อกซี API ผ่าน UI ของ Edge หรือ Edge Management API ล้มเหลวโดยมีข้อความแสดงข้อผิดพลาดนี้
Error Deploying Revision revision_number to env_name BasicAuthenticationPolicy: Username element must be present for operation operation.
ตัวอย่างข้อความแสดงข้อผิดพลาด
Error Deploying Revision 2 to test
BasicAuthenticationPolicy: Username element must be present for Encode operation.
ภาพหน้าจอตัวอย่าง

สาเหตุ
การติดตั้งใช้งาน API Proxy จะล้มเหลวหากไม่ได้กำหนดองค์ประกอบ <User> ในนโยบายการตรวจสอบสิทธิ์ขั้นพื้นฐาน องค์ประกอบ <User> เป็นองค์ประกอบบังคับสำหรับการดำเนินการทั้งการเข้ารหัสและการถอดรหัส
การวินิจฉัย
ตรวจสอบนโยบาย BasicAuthentication ทั้งหมดที่ใช้ในพร็อกซี API หากมีนโยบายที่ไม่ได้ระบุองค์ประกอบ
<User>นั่นคือสาเหตุของข้อผิดพลาด องค์ประกอบ<User>เป็นองค์ประกอบที่ต้องระบุในนโยบาย BasicAuthentication สำหรับการดำเนินการเข้ารหัสหรือถอดรหัสนโยบาย BasicAuthentication ตัวอย่างที่แสดงด้านล่างใช้สำหรับการดำเนินการ Encode แต่ไม่ได้กำหนดองค์ประกอบ
<User><?xml version="1.0" encoding="UTF-8" standalone="yes"?> <BasicAuthentication name="ApplyBasicAuthHeader"> <DisplayName>ApplyBasicAuthHeader</DisplayName> <Operation>Encode</Operation> <IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables> <Password ref="BasicAuth.credentials.password"/> <AssignTo createNew="false">request.header.Authorization</AssignTo> </BasicAuthentication>การติดตั้งใช้งานล้มเหลวเนื่องจากข้อผิดพลาดด้านล่าง
BasicAuthenticationPolicy: Username element must be present for Encode operation.
ความละเอียด
ตรวจสอบว่าได้กำหนดองค์ประกอบ <User> ภายในนโยบาย BasicAuthentication สำหรับการดำเนินการ Encode หรือ Decode
หากต้องการแก้ไขตัวอย่างที่แสดงด้านบน ให้ใส่ <User>element ไว้ในนโยบายตามที่แสดงด้านล่าง
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<BasicAuthentication name="ApplyBasicAuthHeader">
<DisplayName>ApplyBasicAuthHeader</DisplayName>
<Operation>Encode</Operation>
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables>
<User ref="BasicAuth.credentials.username"/>
<Password ref="BasicAuth.credentials.password"/>
<AssignTo createNew="false">request.header.Authorization</AssignTo>
</BasicAuthentication>
PasswordRequired
ข้อความแสดงข้อผิดพลาด
การติดตั้งใช้งานพร็อกซี API ผ่าน UI ของ Edge หรือ Edge Management API ล้มเหลวโดยมีข้อความแสดงข้อผิดพลาดนี้
Error Deploying Revision revision_number to env_name BasicAuthenticationPolicy: Password element must be present for operation operation.
ตัวอย่างข้อความแสดงข้อผิดพลาด
Error Deploying Revision 2 to test
BasicAuthenticationPolicy: Password element must be present for Encode operation.
ภาพหน้าจอตัวอย่าง

สาเหตุ
การติดตั้งใช้งาน API Proxy จะล้มเหลวหากไม่ได้กำหนดองค์ประกอบ <Password> ในนโยบายการตรวจสอบสิทธิ์ขั้นพื้นฐาน องค์ประกอบ <Password> เป็นองค์ประกอบบังคับสำหรับการดำเนินการทั้งการเข้ารหัสและการถอดรหัส
การวินิจฉัย
ตรวจสอบนโยบาย BasicAuthentication ทั้งหมดที่ใช้ในพร็อกซี API หากมีนโยบายที่ไม่ได้กำหนดองค์ประกอบ
<Password>นั่นคือสาเหตุของข้อผิดพลาด องค์ประกอบ<Password>เป็นองค์ประกอบที่ต้องระบุในนโยบาย BasicAuthentication สำหรับการดำเนินการเข้ารหัสหรือถอดรหัสนโยบาย BasicAuthentication ตัวอย่างที่แสดงด้านล่างใช้สำหรับการดำเนินการ Encode แต่ไม่ได้กำหนดองค์ประกอบ
<Password><?xml version="1.0" encoding="UTF-8" standalone="yes"?> <BasicAuthentication name="ApplyBasicAuthHeader"> <DisplayName>ApplyBasicAuthHeader</DisplayName> <Operation>Encode</Operation> <IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables> <User ref="BasicAuth.credentials.username"/> <AssignTo createNew="false">request.header.Authorization</AssignTo> </BasicAuthentication>การติดตั้งใช้งานล้มเหลวเนื่องจากข้อผิดพลาดด้านล่าง
BasicAuthenticationPolicy: Password element must be present for Encode operation.
ความละเอียด
ตรวจสอบว่าได้กำหนดองค์ประกอบ <Password> ภายในนโยบาย BasicAuthentication สำหรับการดำเนินการ Encode หรือ Decode
หากต้องการแก้ไขตัวอย่างที่แสดงด้านบน ให้ใส่ <Password>element ไว้ในนโยบายตามที่แสดงด้านล่าง
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<BasicAuthentication name="ApplyBasicAuthHeader">
<DisplayName>ApplyBasicAuthHeader</DisplayName>
<Operation>Encode</Operation>
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables>
<User ref="BasicAuth.credentials.username"/>
<Password ref="BasicAuth.credentials.password"/>
<AssignTo createNew="false">request.header.Authorization</AssignTo>
</BasicAuthentication>
AssignToRequired
ข้อความแสดงข้อผิดพลาด
การติดตั้งใช้งานพร็อกซี API ผ่าน UI ของ Edge หรือ Edge Management API ล้มเหลวโดยมีข้อความแสดงข้อผิดพลาดนี้
Error Deploying Revision revision_number to env_name BasicAuthenticationPolicy: AssignTo element must be present for operation operation.
ตัวอย่างข้อความแสดงข้อผิดพลาด
Error Deploying Revision 2 to test
BasicAuthenticationPolicy: AssignTo element must be present for Encode operation.
ภาพหน้าจอตัวอย่าง

สาเหตุ
การติดตั้งใช้งาน API Proxy จะล้มเหลวหากไม่ได้กำหนดองค์ประกอบ <AssignTo> ในนโยบายการตรวจสอบสิทธิ์ขั้นพื้นฐาน องค์ประกอบ <AssignTo> เป็นองค์ประกอบบังคับสำหรับการดำเนินการทั้งการเข้ารหัสและการถอดรหัส
การวินิจฉัย
ตรวจสอบนโยบาย BasicAuthentication ทั้งหมดที่ใช้ในพร็อกซี API หากมีนโยบายที่ไม่ได้กำหนดองค์ประกอบ
<AssignTo>นั่นคือสาเหตุของข้อผิดพลาด ต้องกำหนดองค์ประกอบ<AssignTo>ในนโยบาย BasicAuthentication สำหรับทั้งการดำเนินการเข้ารหัสและถอดรหัสนโยบาย BasicAuthentication ตัวอย่างที่แสดงด้านล่างใช้สำหรับการดำเนินการ Encode แต่ไม่ได้กำหนดองค์ประกอบ
<AssignTo><?xml version="1.0" encoding="UTF-8" standalone="yes"?> <BasicAuthentication name="ApplyBasicAuthHeader"> <DisplayName>ApplyBasicAuthHeader</DisplayName> <Operation>Encode</Operation> <IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables> <User ref="BasicAuth.credentials.username"/> <Password ref="BasicAuth.credentials.password"/> </BasicAuthentication>การติดตั้งใช้งานล้มเหลวเนื่องจากข้อผิดพลาดด้านล่าง
BasicAuthenticationPolicy: AssignTo element must be present for Encode operation.
ความละเอียด
ตรวจสอบว่าได้กำหนดองค์ประกอบ <AssignTo> ภายในนโยบาย BasicAuthentication สำหรับการดำเนินการ Encode หรือ Decode
หากต้องการแก้ไขตัวอย่างที่แสดงด้านบน ให้ใส่ <AssignTo>element ไว้ในนโยบายตามที่แสดงด้านล่าง
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<BasicAuthentication name="ApplyBasicAuthHeader">
<DisplayName>ApplyBasicAuthHeader</DisplayName>
<Operation>Encode</Operation>
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables>
<User ref="BasicAuth.credentials.username"/>
<Password ref="BasicAuth.credentials.password"/>
<AssignTo createNew="false">request.header.Authorization</AssignTo>
</BasicAuthentication>
SourceRequired
ข้อความแสดงข้อผิดพลาด
การติดตั้งใช้งานพร็อกซี API ผ่าน UI ของ Edge หรือ Edge Management API ล้มเหลวโดยมีข้อความแสดงข้อผิดพลาดนี้
Error Deploying Revision revision_number to env_name BasicAuthenticationPolicy: Source element must be present for Decode operation.
ตัวอย่างข้อความแสดงข้อผิดพลาด
Error Deploying Revision 2 to test
BasicAuthenticationPolicy: Source element must be present for Decode operation.
ภาพหน้าจอตัวอย่าง

สาเหตุ
การติดตั้งใช้งานพร็อกซี API จะล้มเหลวหากไม่ได้กำหนดองค์ประกอบ <Source> ในนโยบาย BasicAuthentication ที่ใช้สำหรับการดำเนินการถอดรหัส ต้องระบุองค์ประกอบ <Source> หากระบุ <Operation> เป็น Decode ในนโยบาย BasicAuthentication
การวินิจฉัย
ตรวจสอบนโยบาย BasicAuthentication ทั้งหมดที่ใช้ในพร็อกซี API หากมีนโยบายที่ไม่ได้กำหนดองค์ประกอบ
<Source>และกำหนดองค์ประกอบ<Operation>เป็นDecodeแสดงว่านั่นคือสาเหตุของข้อผิดพลาด ต้องระบุองค์ประกอบ<Source>หากระบุ<Operation>เป็นDecodeในนโยบาย BasicAuthenticationนโยบาย BasicAuthentication ตัวอย่างที่แสดงด้านล่างใช้สำหรับการดำเนินการ
Decodeแต่ไม่ได้กำหนดองค์ประกอบ<Source><?xml version="1.0" encoding="UTF-8" standalone="yes"?> <BasicAuthentication name="ApplyBasicAuthHeader"> <DisplayName>ApplyBasicAuthHeader</DisplayName> <Operation>Decode</Operation> <IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables> <User ref="BasicAuth.credentials.username"/> <Password ref="BasicAuth.credentials.password"/> <AssignTo createNew="false">request.header.Authorization</AssignTo> </BasicAuthentication>การติดตั้งใช้งานล้มเหลวเนื่องจากข้อผิดพลาดด้านล่าง
BasicAuthenticationPolicy: Source element must be present for Decode operation.
ความละเอียด
ตรวจสอบว่าได้กำหนดองค์ประกอบ <Source> ในนโยบาย BasicAuthentication เมื่อใช้สำหรับการดำเนินการ Decode
หากต้องการแก้ไขตัวอย่างที่แสดงด้านบน ให้ใส่ <Source>element ไว้ในนโยบายตามที่แสดงด้านล่าง
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<BasicAuthentication name="ApplyBasicAuthHeader">
<DisplayName>ApplyBasicAuthHeader</DisplayName>
<Operation>Decode</Operation>
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables>
<User ref="BasicAuth.credentials.username"/>
<Password ref="BasicAuth.credentials.password"/>
<AssignTo createNew="false">request.header.Authorization</AssignTo>
<Source>request.header.Authorization</Source>
</BasicAuthentication>