כדי לתת ליוצרים של טפסים יותר שליטה על מי יכול להשיב להם, אנחנו משיקים אמצעי בקרה מפורטים יותר לגבי המשיבים. טפסים שנוצרו באמצעות ה-API אחרי 31 בינואר 2026 יהיו במצב 'לא פורסם' כברירת מחדל. מידע נוסף זמין במאמר שינויים ב-API של Google Forms.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בדף הזה מתוארות כמה בעיות נפוצות שעשויות להתרחש בנוגע לאימות ולהרשאות.
This app isn't verified
אם במסך ההסכמה של OAuth מוצגת האזהרה "האפליקציה הזו לא מאומתת", האפליקציה שלכם מבקשת היקפי הרשאות שמספקים גישה לנתונים רגישים של משתמשים. אם האפליקציה שלכם משתמשת בהיקפי גישה רגישים, היא תצטרך לעבור את תהליך האימות כדי להסיר את האזהרה הזו ומגבלות אחרות. בשלב הפיתוח, תוכלו להמשיך מעבר לאזהרה הזו על ידי בחירה באפשרות מתקדם > מעבר אל {Project Name} (לא בטוח).
File not found error for credentials.json
כשמריצים את דוגמת הקוד, יכול להיות שתופיע הודעת השגיאה 'הקובץ לא נמצא' או 'אין קובץ כזה' לגבי credentials.json.
השגיאה הזו מתקבלת אם לא הענקת הרשאה לפרטי הכניסה של אפליקציית שולחן העבודה. במאמר יצירת פרטי כניסה מוסבר איך יוצרים פרטי כניסה לאפליקציה למחשב.
אחרי שיוצרים את פרטי הכניסה, צריך לוודא שקובץ ה-JSON שהורדתם נשמר בתור credentials.json. לאחר מכן מעבירים את הקובץ לספריית העבודה.
Token has been expired or revoked
כשמריצים את דוגמת הקוד, יכול להיות שתופיע הודעת השגיאה 'פג תוקף האסימון' או 'האסימון בוטל'.
השגיאה הזו מתרחשת כשפג תוקף של טוקן גישה משרת ההרשאות של Google או שהוא בוטל. למידע על סיבות אפשריות לתופעה ועל פתרונות, ראו תפוגת התוקף של אסימון הרענון.
שגיאות JavaScript
ריכזנו כאן כמה שגיאות נפוצות ב-JavaScript.
Error: origin_mismatch
השגיאה הזו מתרחשת במהלך תהליך ההרשאה אם המארח והיציאה ששימשו להצגת דף האינטרנט לא תואמים למקור JavaScript מורשה בפרויקט שלכם במסוף Google Cloud. חשוב לוודא שהגדרתם מקור מורשה של JavaScript ושכתובת ה-URL בדפדפן תואמת לכתובת ה-URL של המקור.
idpiframe_initialization_failed: Failed to read the 'localStorage' property from 'Window'
השגיאה הזו מתרחשת כשקובצי cookie של צד שלישי ואחסון נתונים לא מופעלים בדפדפן. האפשרויות האלה נדרשות על ידי הספרייה של Google Sign-in. למידע נוסף, ראו קובצי Cookie של צד שלישי ואחסון נתונים.
idpiframe_initialization_failed: Not a valid origin for the client
השגיאה הזו מתקבלת כשהדומיין הרשום לא תואם לדומיין שבו מתארח דף האינטרנט. חשוב לוודא שהמקור שרשמת תואם לכתובת ה-URL בדפדפן.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-02-11 (שעון UTC)."],[],["The content addresses common authentication and authorization issues. It details resolving the \"This app isn't verified\" warning by undergoing a verification process or bypassing it temporarily. It also explains the \"file not found\" error for `credentials.json`, advising users to create desktop application credentials, save the file correctly, and move it to the working directory. The \"Token has been expired or revoked\" error is covered, with a link provided for resolution. It also addresses Javascript errors including origin mismatches and issues with localStorage, recommending setting correct origins and enabling third-party cookies.\n"],null,["# Troubleshoot authentication & authorization issues\n\nThis page describes some common issues that you might encounter involving\nauthentication and authorization.\n\n`This app isn't verified`\n-------------------------\n\nIf the OAuth consent screen displays the warning \"This app isn't verified,\" your\napp is requesting scopes that provide access to sensitive user data. If your\napplication uses sensitive scopes, your app must go through the\n[verification process](https://support.google.com/cloud/answer/7454865)\nto remove that warning and other limitations. During the development phase, you\ncan continue past this warning by selecting **Advanced \\\u003e Go to {Project Name}\n(unsafe)**.\n\n`File not found error for credentials.json`\n-------------------------------------------\n\nWhen running the code sample, you might receive a \"file not found\" or \"no such\nfile\" error message regarding credentials.json.\n\nThis error occurs when you have not authorized the desktop application\ncredentials. To learn how to create credentials\nfor a desktop application, go to\n[Create credentials](/workspace/guides/create-credentials#desktop-app).\n\nAfter you create the credentials, make sure the downloaded JSON file is saved as\n`credentials.json`. Then move the file to your working directory.\n\n`Token has been expired or revoked`\n-----------------------------------\n\nWhen running the code sample, you might receive a \"Token has been expired\" or\n\"Token has been revoked\" error message.\n\nThis error occurs when an access token from the Google Authorization Server has\neither expired or has been revoked. For information about potential causes\nand fixes, see\n[Refresh token expiration](/identity/protocols/oauth2#expiration).\n\nJavaScript errors\n-----------------\n\nThe following are some common JavaScript errors.\n\n### `Error: origin_mismatch`\n\nThis error occurs during the authorization flow if the host and port used\nto serve the web page doesn't match an allowed JavaScript origin on your\nGoogle Cloud console project. Make sure you set an authorized\nJavaScript origin and that the URL in your browser matches the origin URL.\n\n### `idpiframe_initialization_failed: Failed to read the 'localStorage' property from 'Window'`\n\nThis error occurs when third-party cookies and data storage aren't enabled\nin your browser. These options are required by the Google Sign-in library. For\nmore information, see\n[3rd-party cookies and data storage](https://developers.google.com/identity/sign-in/web/troubleshooting#third-party_cookies_and_data_blocked).\n| **Note:** In your own app, you should prompt users to enable third-party cookies and data storage or add an exception for `accounts.google.com`.\n\n### `idpiframe_initialization_failed: Not a valid origin for the client`\n\nThis error occurs when the domain registered doesn't match the domain being\nused to host the web page. Ensure that the origin you registered matches the URL\nin the browser."]]