הדף הזה רלוונטי ל-Apigee ול-Apigee Hybrid.
לעיון במסמכי התיעוד של Apigee Edge
URLMissing
הודעת השגיאה
פריסת ה-proxy ל-API דרך ממשק המשתמש או ה-API של Apigee נכשלת ומוצגת הודעת השגיאה הבאה:
Error Saving Revision [revision_number] URL is missing in Step [policy_name]
דוגמה להודעת שגיאה
Error Saving Revision 2
URL is missing in Step ExecuteGeocodingRequest.
צילום מסך לדוגמה

מטרה
אם רכיב <URL> במדיניות Service Callout חסר או ריק, פריסת ה-proxy ל-API תיכשל.
אבחון
בודקים את הרכיב <URL> במדיניות של תוסף היתרונות המרכזיים ששמו מופיע בהודעת השגיאה. אם לא מוצהרת כתובת URL בתוך הרכיב, זו הסיבה לשגיאה. לדוגמה, במדיניות Service Callout הבאה יש רכיב <URL> ריק:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout name="ExecuteGeocodingRequest">
<Request variable="GeocodingRequest"/>
<Response>GeocodingResponse</Response>
<HTTPTargetConnection>
<URL></URL>
</HTTPTargetConnection>
</ServiceCallout>
הפריסה של ה-proxy ל-API נכשלת כי הרכיב <URL> ריק.
רזולוציה
מוודאים שלרכיב <URL> במדיניות Service Callout יש כתובת URL תקינה. לדוגמה:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout name="ExecuteGeocodingRequest">
<Request variable="GeocodingRequest"/>
<Response>GeocodingResponse</Response>
<HTTPTargetConnection>
<URL>http://maps.googleapis.com/maps/api/geocode/json</URL>
</HTTPTargetConnection>
</ServiceCallout>
ConnectionInfoMissing
הודעת השגיאה
פריסת ה-proxy ל-API דרך ממשק המשתמש או ה-API של Apigee נכשלת ומוצגת הודעת השגיאה הבאה:
Error Saving Revision [revision_number] Connection information is missing in Step [policy_name]
דוגמה להודעת שגיאה
Error Saving Revision 1
Connection information is missing in Step ExecuteGeocodingRequest.
צילום מסך לדוגמה

מטרה
אם למדיניות Service Callout אין את הרכיב <HTTPTargetConnection> או <LocalTargetConnection>, הפריסה של proxy ל-API תיכשל.
אבחון
בודקים אם לרכיב Service Callout של מדיניות יש הגדרה של <HTTPTargetConnection> או <LocalTargetConnection>. לדוגמה:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout name="ExecuteGeocodingRequest">
<Request variable="GeocodingRequest"/>
<Response>GeocodingResponse</Response>
</ServiceCallout>
שימו לב שלא מוגדר במדיניות הרכיב <HTTPTargetConnection> או הרכיב <LocalTargetConnection>.
רזולוציה
מוודאים שלמדיניות Service Callout יש את הרכיב <HTTPTargetConnection> או <LocalTargetConnection>. לדוגמה:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout name="ExecuteGeocodingRequest">
<Request variable="GeocodingRequest"/>
<Response>GeocodingResponse</Response>
<HTTPTargetConnection>
<URL>http://maps.googleapis.com/maps/api/geocode/json</URL>
</HTTPTargetConnection>
</ServiceCallout>
InvalidTimeoutValue
הודעת השגיאה
פריסת proxy ל-API דרך ממשק המשתמש או ה-API של Apigee נכשלת עם הודעת השגיאה הבאה:
Error Saving Revision [revision_number] Invalid Timeout value [0 or negative_number].
דוגמה להודעת שגיאה
Error Saving Revision 1
Invalid Timeout value -1.
צילום מסך לדוגמה

מטרה
אם ברכיב <Timeout> במדיניות Service Callout מצוין ערך אפס או ערך שלילי, הפריסה של proxy ל-API תיכשל.
אבחון
בודקים את הרכיב <Timeout> במדיניות של הערות על שירותים. אם הערך הוא אפס או מספר שלילי, זו הסיבה לשגיאה. לדוגמה:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout name="ExecuteGeocodingRequest">
<Request variable="GeocodingRequest"/>
<Response>GeocodingResponse</Response>
<Timeout>0</Timeout>
<HTTPTargetConnection>
<URL>http://maps.googleapis.com/maps/api/geocode/json</URL>
</HTTPTargetConnection>
</ServiceCallout>
הפריסה של ה-proxy נכשלת כי הערך של הרכיב <Timeout> הוא אפס.
רזולוציה
צריך לוודא שהערך שצוין לרכיב <Timeout> הוא מספר שאינו אפס או מספר לא שלילי. לדוגמה:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout name="ExecuteGeocodingRequest">
<Request variable="GeocodingRequest"/>
<Response>GeocodingResponse</Response>
<Timeout>10</Timeout>
<HTTPTargetConnection>
<URL>http://maps.googleapis.com/maps/api/geocode/json</URL>
</HTTPTargetConnection>
</ServiceCallout>