<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error: GET https://localhost:8080/assets/status 404 (Not Found) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-GET-https-localhost-8080-assets-status-404-Not-Found/m-p/2034399#M31302</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to create a new visual and for it I need to use a webpack.config.js for exclude node_modules. But when I start the project with webpack-dev-server (not pbiviz because it don't use the webpack.config.js) my localhost seems good but I have&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Error 404.PNG" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/579076i3A02DA15EFC19539/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Error 404.PNG" alt="Error 404.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the error :&amp;nbsp;&lt;FONT color="#FF0000"&gt;GET &lt;A href="https://localhost:8080/assets/status" target="_blank" rel="noopener"&gt;https://localhost:8080/assets/status&lt;/A&gt; 404 (Not Found) &lt;FONT color="#000000"&gt;in the console&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;I don't understand where the probleme come from...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;And I have this webpack.config.js:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var path = require('path')
const fs = require("fs");

// werbpack plugin
var webpack = require('webpack')
console.log(require.resolve('powerbi-visuals-webpack-plugin'));
const PowerBICustomVisualsWebpackPlugin = require('powerbi-visuals-webpack-plugin');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
// const Visualizer = require('webpack-visualizer-plugin');
const ExtraWatchWebpackPlugin = require('extra-watch-webpack-plugin');
 
// api configuration
const powerbiApi = require("powerbi-visuals-api");
 
// visual configuration json path
const pbivizPath = "./pbiviz.json";
const pbivizFile = require(path.join(__dirname, pbivizPath));
 
// the visual capabilities content
const capabilitiesPath = "./capabilities.json";
const capabilitiesFile = require(path.join(__dirname, capabilitiesPath));
 
const pluginLocation = './.tmp/precompile/visualPlugin.ts'; // path to visual plugin file, the file generates by the plugin
 
// string resources
const resourcesFolder = path.join(".", "stringResources");
const localizationFolders = fs.readdirSync(resourcesFolder);
 
// babel options to support IE11
let babelOptions = {
    "presets": [
        [
            require.resolve('@babel/preset-env'),
            {
                "targets": {
                    "ie": "11",
                    "chrome": "52"
                },
                useBuiltIns: "entry",
                modules: false
            }
        ]
    ],
    sourceType: "unambiguous", // tell to babel that the project can contains different module types, not only es2015 modules
    cacheDirectory: path.join(".tmp", "babelCache") // path for chace files
};

module.exports = {
    entry: './src/visual.ts',
    // output: {
    //     path: path.resolve('./dist'),
    //     filename: 'visual.bundle.js',
    // },
    output: {
        path: path.join(__dirname, "/.tmp","drop"),
        publicPath: 'assets',
        filename: "[name].bundle.js",
    },
    mode: "development",
    resolve: {
        extensions: ['.js', '.jsx', '.ts', '.tsx'],
    },
    module: {
        rules: [
            { test: /\.ts$/, use: 'ts-loader' },
            {
                test: /\.js$/, use: {
                    loader: 'babel-loader',
                    options: {
                        ignore: ['./node_modules/mapbox-gl/dist/mapbox-gl.js']
                    }
                }
            },
            { test: /\.css$/, use: 'css-loader' },
            { test: /\.less$/, use: [
                {
                    loader: 'css-loader',
                },
                {
                    loader: 'less-loader',
                },
            ] }
        ]
    },
    devServer: {
        // disableHostCheck: true,
        allowedHosts: 'all',
        static: path.join(__dirname, "/.tmp", "drop"), // path with assets for dev server, they are generated by webpack plugin
        compress: true,
        port: 8080, // dev server port
        hot: false,
        // inline: false,
        // cert files for dev server
        https: {
            pfx: fs.readFileSync(path.join(__dirname, 'node_modules\\powerbi-visuals-tools\\certs\\PowerBICustomVisualTest_public.pfx')), // for windows
            passphrase: "6529273902027273"
        },
        headers: {
            "access-control-allow-origin": "*",
            "cache-control": "public, max-age=0"
        },
        client: {
            overlay: true,
            progress: true,
        },
    },
    externals: {
        "powerbi-visuals-api": 'null',
        "fakeDefine": 'false',
        "corePowerbiObject": "Function('return this.powerbi')()",
        "realWindow": "Function('return this')()"
    },
    plugins: [
        new MiniCssExtractPlugin({
            filename: "visual.css",
            chunkFilename: "[id].css"
        }),
        // new Visualizer({
        //     filename: "webpack.statistics.dev.html"
        // }),
        // visual plugin regenerates with the visual source, but it does not require relaunching dev server
        new webpack.WatchIgnorePlugin({paths:[
            path.join(__dirname, pluginLocation),
            "./.tmp/**/*.*"
        ]}),
        // custom visuals plugin instance with options
        new PowerBICustomVisualsWebpackPlugin({
            ...pbivizFile,
            capabilities: capabilitiesFile,
            stringResources: localizationFolders.map(localization =&amp;gt; path.join(
                resourcesFolder,
                localization,
                "resources.resjson"
            )),
            apiVersion: powerbiApi.version,
            capabilitiesSchema: powerbiApi.schemas.capabilities,
            pbivizSchema: powerbiApi.schemas.pbiviz,
            stringResourcesSchema: powerbiApi.schemas.stringResources,
            dependenciesSchema: powerbiApi.schemas.dependencies,
            devMode: false,
            generatePbiviz: true,
            generateResources: true,
            modules: true,
            visualSourceLocation: './src/visual', // "../../src/visual",
            pluginLocation: pluginLocation,
            packageOutPath: path.join(__dirname, "dist")
        }),
        new ExtraWatchWebpackPlugin({
            files: [
                pbivizPath,
                capabilitiesPath
            ]
        }),
        new webpack.ProvidePlugin({
            window: 'realWindow',
            define: 'fakeDefine',
            powerbi: 'corePowerbiObject'
        }),
    ]
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank in advance !&lt;/P&gt;</description>
    <pubDate>Tue, 24 Aug 2021 08:35:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-08-24T08:35:33Z</dc:date>
    <item>
      <title>Error: GET https://localhost:8080/assets/status 404 (Not Found)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-GET-https-localhost-8080-assets-status-404-Not-Found/m-p/2034399#M31302</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to create a new visual and for it I need to use a webpack.config.js for exclude node_modules. But when I start the project with webpack-dev-server (not pbiviz because it don't use the webpack.config.js) my localhost seems good but I have&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Error 404.PNG" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/579076i3A02DA15EFC19539/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Error 404.PNG" alt="Error 404.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the error :&amp;nbsp;&lt;FONT color="#FF0000"&gt;GET &lt;A href="https://localhost:8080/assets/status" target="_blank" rel="noopener"&gt;https://localhost:8080/assets/status&lt;/A&gt; 404 (Not Found) &lt;FONT color="#000000"&gt;in the console&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;I don't understand where the probleme come from...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;And I have this webpack.config.js:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var path = require('path')
const fs = require("fs");

// werbpack plugin
var webpack = require('webpack')
console.log(require.resolve('powerbi-visuals-webpack-plugin'));
const PowerBICustomVisualsWebpackPlugin = require('powerbi-visuals-webpack-plugin');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
// const Visualizer = require('webpack-visualizer-plugin');
const ExtraWatchWebpackPlugin = require('extra-watch-webpack-plugin');
 
// api configuration
const powerbiApi = require("powerbi-visuals-api");
 
// visual configuration json path
const pbivizPath = "./pbiviz.json";
const pbivizFile = require(path.join(__dirname, pbivizPath));
 
// the visual capabilities content
const capabilitiesPath = "./capabilities.json";
const capabilitiesFile = require(path.join(__dirname, capabilitiesPath));
 
const pluginLocation = './.tmp/precompile/visualPlugin.ts'; // path to visual plugin file, the file generates by the plugin
 
// string resources
const resourcesFolder = path.join(".", "stringResources");
const localizationFolders = fs.readdirSync(resourcesFolder);
 
// babel options to support IE11
let babelOptions = {
    "presets": [
        [
            require.resolve('@babel/preset-env'),
            {
                "targets": {
                    "ie": "11",
                    "chrome": "52"
                },
                useBuiltIns: "entry",
                modules: false
            }
        ]
    ],
    sourceType: "unambiguous", // tell to babel that the project can contains different module types, not only es2015 modules
    cacheDirectory: path.join(".tmp", "babelCache") // path for chace files
};

module.exports = {
    entry: './src/visual.ts',
    // output: {
    //     path: path.resolve('./dist'),
    //     filename: 'visual.bundle.js',
    // },
    output: {
        path: path.join(__dirname, "/.tmp","drop"),
        publicPath: 'assets',
        filename: "[name].bundle.js",
    },
    mode: "development",
    resolve: {
        extensions: ['.js', '.jsx', '.ts', '.tsx'],
    },
    module: {
        rules: [
            { test: /\.ts$/, use: 'ts-loader' },
            {
                test: /\.js$/, use: {
                    loader: 'babel-loader',
                    options: {
                        ignore: ['./node_modules/mapbox-gl/dist/mapbox-gl.js']
                    }
                }
            },
            { test: /\.css$/, use: 'css-loader' },
            { test: /\.less$/, use: [
                {
                    loader: 'css-loader',
                },
                {
                    loader: 'less-loader',
                },
            ] }
        ]
    },
    devServer: {
        // disableHostCheck: true,
        allowedHosts: 'all',
        static: path.join(__dirname, "/.tmp", "drop"), // path with assets for dev server, they are generated by webpack plugin
        compress: true,
        port: 8080, // dev server port
        hot: false,
        // inline: false,
        // cert files for dev server
        https: {
            pfx: fs.readFileSync(path.join(__dirname, 'node_modules\\powerbi-visuals-tools\\certs\\PowerBICustomVisualTest_public.pfx')), // for windows
            passphrase: "6529273902027273"
        },
        headers: {
            "access-control-allow-origin": "*",
            "cache-control": "public, max-age=0"
        },
        client: {
            overlay: true,
            progress: true,
        },
    },
    externals: {
        "powerbi-visuals-api": 'null',
        "fakeDefine": 'false',
        "corePowerbiObject": "Function('return this.powerbi')()",
        "realWindow": "Function('return this')()"
    },
    plugins: [
        new MiniCssExtractPlugin({
            filename: "visual.css",
            chunkFilename: "[id].css"
        }),
        // new Visualizer({
        //     filename: "webpack.statistics.dev.html"
        // }),
        // visual plugin regenerates with the visual source, but it does not require relaunching dev server
        new webpack.WatchIgnorePlugin({paths:[
            path.join(__dirname, pluginLocation),
            "./.tmp/**/*.*"
        ]}),
        // custom visuals plugin instance with options
        new PowerBICustomVisualsWebpackPlugin({
            ...pbivizFile,
            capabilities: capabilitiesFile,
            stringResources: localizationFolders.map(localization =&amp;gt; path.join(
                resourcesFolder,
                localization,
                "resources.resjson"
            )),
            apiVersion: powerbiApi.version,
            capabilitiesSchema: powerbiApi.schemas.capabilities,
            pbivizSchema: powerbiApi.schemas.pbiviz,
            stringResourcesSchema: powerbiApi.schemas.stringResources,
            dependenciesSchema: powerbiApi.schemas.dependencies,
            devMode: false,
            generatePbiviz: true,
            generateResources: true,
            modules: true,
            visualSourceLocation: './src/visual', // "../../src/visual",
            pluginLocation: pluginLocation,
            packageOutPath: path.join(__dirname, "dist")
        }),
        new ExtraWatchWebpackPlugin({
            files: [
                pbivizPath,
                capabilitiesPath
            ]
        }),
        new webpack.ProvidePlugin({
            window: 'realWindow',
            define: 'fakeDefine',
            powerbi: 'corePowerbiObject'
        }),
    ]
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank in advance !&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 08:35:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-GET-https-localhost-8080-assets-status-404-Not-Found/m-p/2034399#M31302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-24T08:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error: GET https://localhost:8080/assets/status 404 (Not Found)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-GET-https-localhost-8080-assets-status-404-Not-Found/m-p/2034446#M31303</link>
      <description>&lt;P&gt;I change the line&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;publicPath: 'assets',&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;in&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;publicPath: '/assets/',&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and now I have the error&amp;nbsp;&lt;FONT color="#FF0000"&gt;GET &lt;A href="https://localhost:8080/assets/visual.js" target="_blank"&gt;https://localhost:8080/assets/visual.js&lt;/A&gt; 404 (Not Found),&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;So I think the probleme come from where I put the output, or something is not create with my webpack&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 08:51:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-GET-https-localhost-8080-assets-status-404-Not-Found/m-p/2034446#M31303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-24T08:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error: GET https://localhost:8080/assets/status 404 (Not Found)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-GET-https-localhost-8080-assets-status-404-Not-Found/m-p/2038993#M31353</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;AFAIK, 404 error means these requests have referenced the wrong path of link/resource. According to your description and error messages, I think it means the project can't find out the specified resource which hosts in the assets folder.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://en.wikipedia.org/wiki/HTTP_404" target="_blank"&gt;HTTP 404 - Wikipedia&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If you want to invoke the external resource, you can take a look at the following link about similar requirements:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Including-External-Assets-in-Custom-Visual-Assets-folder-ArcGIS/td-p/1648756" target="_blank"&gt;Solved: Including External Assets in Custom Visual (/Asset... - Microsoft Power BI Community&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 01:09:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-GET-https-localhost-8080-assets-status-404-Not-Found/m-p/2038993#M31353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-26T01:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error: GET https://localhost:8080/assets/status 404 (Not Found)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-GET-https-localhost-8080-assets-status-404-Not-Found/m-p/2039596#M31359</link>
      <description>&lt;P&gt;Thanks I said to my webpack to put everything I create in a folder assets and now it works (I don't have the visuals but it connect it's an advancement XD) Now i need to search why it don't works... Thanks !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 07:11:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-GET-https-localhost-8080-assets-status-404-Not-Found/m-p/2039596#M31359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-26T07:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error: GET https://localhost:8080/assets/status 404 (Not Found)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-GET-https-localhost-8080-assets-status-404-Not-Found/m-p/2039600#M31360</link>
      <description>&lt;P&gt;For more information I change the line&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;path: path.join(__dirname, "/.tmp","drop"),&lt;/LI-CODE&gt;&lt;P&gt;to&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;path: path.join(__dirname, "/.tmp","drop", "assets"),&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 Aug 2021 07:13:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-GET-https-localhost-8080-assets-status-404-Not-Found/m-p/2039600#M31360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-26T07:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error: GET https://localhost:8080/assets/status 404 (Not Found)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-GET-https-localhost-8080-assets-status-404-Not-Found/m-p/3112308#M41560</link>
      <description>&lt;P&gt;Good Evening,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running command "pbiviz start"&lt;/P&gt;&lt;P&gt;Go to this link in chrom&amp;nbsp;&lt;A href="https://localhost:8080/assets/" target="_blank"&gt;https://localhost:8080/assets/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and then scroll down and click on "proceed without safety" option&lt;/P&gt;&lt;P&gt;and then go back to your report and click on developer visual option.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 14:43:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-GET-https-localhost-8080-assets-status-404-Not-Found/m-p/3112308#M41560</guid>
      <dc:creator>Lalit_Krishna_S</dc:creator>
      <dc:date>2023-03-05T14:43:34Z</dc:date>
    </item>
  </channel>
</rss>

