Help Center> ModelArts> FAQs> Notebook> Notebook Instances> What Do I Do If Notebook Examples Fail to Be Loaded and the "_xsrf'argument missing from POST" Error Is Displayed?

What Do I Do If Notebook Examples Fail to Be Loaded and the "_xsrf'argument missing from POST" Error Is Displayed?

Symptom

After a GPU-based notebook instance is opened, the ModelArts Examples tab page and engine type fail to be loaded and folders fail to be created on the Jupyter page. Figure 1 and Figure 2 shows the failure.

Figure 1 Fail to load the ModelArts Examples tab page and engine type
Figure 2 Failed to create a folder

Possible Cause

  • A third-party website is required for accessing a GPU-based notebook instance. The website can be accessed only after cookies of the browser is enabled. If the preceding problem occurs, enable cookies in Google Chrome to solve the problem.
  • When you use Google Chrome of a later version, the ModelArts Examples page may fail to open due to some default settings, for example, SameSite by default cookies. You are advised to modify the default settings of the browser to solve this problem.

Solution

Enable cookies in Google Chrome.

  1. In the upper right corner of Google Chrome, click and choose Settings.
  2. Enter cookie in the search box and select Site settings from the search result.
  3. Select Cookies to go to the detailed settings page. Disable Block third-party cookies. See Figure 3.
    Figure 3 Cookie setting
  4. If the Google Chrome version is 80.XX or later and the problem persists after the preceding steps are performed, perform the following operations:
    1. In the address bar of the browser, enter chrome://flags.
    2. In the search box of the opened web page, enter same site to search for related settings. In SameSite by default cookies, change the default value Default to Disabled.
      Figure 4 Setting SameSite
    3. After the parameters are set, click Relaunch at the bottom of the browser to make the settings take effect after Google Chrome is restarted.
      Figure 5 Restarting Google Chrome
    4. Restart the browser, go to the ModelArts console, and check whether the ModelArts Examples tab page is displayed.

    If the problem persists, submit a service ticket to contact technical support.