namkazt / sd-webui-prompt-history

Automatic store your generation info with image and apply back anytime.
MIT License
103 stars 14 forks source link

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'unnamed_endpoints') #34

Open theredwillow opened 10 months ago

theredwillow commented 10 months ago

There's a bug on the very first attempt to open this. I have included the console log as the title. Below is the part of the client/js/dist/index.js file that appears to be causing the issue.

function submit(endpoint, data, event_data) {
        let fn_index;
        let api_info;
        if (typeof endpoint === "number") {
          fn_index = endpoint;
          api_info = api.unnamed_endpoints[fn_index];
        } else {
          const trimmed_endpoint = endpoint.replace(/^\//, "");
          fn_index = api_map[trimmed_endpoint];
          api_info = api.named_endpoints[endpoint.trim()];
        }
namkazt commented 10 months ago

There's a bug on the very first attempt to open this. I have included the console log as the title. Below is the part of the client/js/dist/index.js file that appears to be causing the issue.

function submit(endpoint, data, event_data) {
        let fn_index;
        let api_info;
        if (typeof endpoint === "number") {
          fn_index = endpoint;
          api_info = api.unnamed_endpoints[fn_index];
        } else {
          const trimmed_endpoint = endpoint.replace(/^\//, "");
          fn_index = api_map[trimmed_endpoint];
          api_info = api.named_endpoints[endpoint.trim()];
        }

i do not think this is bug in this extension, look like from A111 or gradio.