Coder Social home page Coder Social logo

webpack-aliyun-oss-plugin's People

Contributors

co-kevin avatar mfylee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

webpack-aliyun-oss-plugin's Issues

ERROR RequestError: getaddrinfo ENOTFOUND

偶发性问题,有时再试一次就好了,出现概率 60%

 ERROR  RequestError: getaddrinfo ENOTFOUND zhulogic-test.oss-cn-shanghai.aliyuncs.com zhulogic-test.oss-cn-shanghai.aliyuncs.com:80, PUT http://zhulogic-test.oss-cn-shanghai.aliyuncs.com/zhulogic-design-cloud/js/chunk-404b.03307215.js -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":395,"createSocketErrorCount":0,"closeSocketCount":0,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"zhulogic-test.oss-cn-shanghai.aliyuncs.com:80:":395},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0)
    headers: {}
RequestError: getaddrinfo ENOTFOUND zhulogic-test.oss-cn-shanghai.aliyuncs.com zhulogic-test.oss-cn-shanghai.aliyuncs.com:80, PUT http://zhulogic-test.oss-cn-shanghai.aliyuncs.com/zhulogic-design-cloud/js/chunk-404b.03307215.js -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":395,"createSocketErrorCount":0,"closeSocketCount":0,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"zhulogic-test.oss-cn-shanghai.aliyuncs.com:80:":395},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0)
headers: {}
    at Client.requestError (/Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/ali-oss/lib/client.js:487:13)
    at requestError.next (<anonymous>)
    at onFulfilled (/Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/co/index.js:65:19)
    at /Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/co/index.js:54:5
    at new Promise (<anonymous>)
    at co (/Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/co/index.js:50:10)
    at toPromise (/Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/co/index.js:118:63)
    at next (/Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/co/index.js:99:29)
    at onRejected (/Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/co/index.js:85:7)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

兼容webpack4~

compiler.plugin('emit' ,function (compilation, callback) {

根据函数是否存在做个兼容性判断哈~

compiler.hooks.compilation.tap('WebpackAliyunOssPlugin', function(
        compilation
    ) {
        // add listener for html-webpack-plugin
        compilation.hooks.htmlWebpackPluginBeforeHtmlProcessing.tapAsync(
            'WebpackAliyunOssPlugin',
            function(htmlPluginData, callback) {

ERROR RequestError: getaddrinfo ENOTFOUND

偶发性问题,有时再试一次就好了,出现概率 60%

 ERROR  RequestError: getaddrinfo ENOTFOUND zhulogic-test.oss-cn-shanghai.aliyuncs.com zhulogic-test.oss-cn-shanghai.aliyuncs.com:80, PUT http://zhulogic-test.oss-cn-shanghai.aliyuncs.com/zhulogic-design-cloud/js/chunk-404b.03307215.js -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":395,"createSocketErrorCount":0,"closeSocketCount":0,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"zhulogic-test.oss-cn-shanghai.aliyuncs.com:80:":395},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0)
    headers: {}
RequestError: getaddrinfo ENOTFOUND zhulogic-test.oss-cn-shanghai.aliyuncs.com zhulogic-test.oss-cn-shanghai.aliyuncs.com:80, PUT http://zhulogic-test.oss-cn-shanghai.aliyuncs.com/zhulogic-design-cloud/js/chunk-404b.03307215.js -1 (connected: false, keepalive socket: false, agent status: {"createSocketCount":395,"createSocketErrorCount":0,"closeSocketCount":0,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"zhulogic-test.oss-cn-shanghai.aliyuncs.com:80:":395},"requests":{}}, socketHandledRequests: 1, socketHandledResponses: 0)
headers: {}
    at Client.requestError (/Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/ali-oss/lib/client.js:487:13)
    at requestError.next (<anonymous>)
    at onFulfilled (/Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/co/index.js:65:19)
    at /Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/co/index.js:54:5
    at new Promise (<anonymous>)
    at co (/Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/co/index.js:50:10)
    at toPromise (/Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/co/index.js:118:63)
    at next (/Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/co/index.js:99:29)
    at onRejected (/Users/hookszhang/ZhuLogic/zhulogic-design-cloud/node_modules/co/index.js:85:7)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.