Giter VIP home page Giter VIP logo

Comments (9)

ElKroko avatar ElKroko commented on June 11, 2024 1

Hi there, I had the same problem when I tried to update Lindo, and the solution that worked for me was removing the .config directory of Lindo

sudo rm -r ~/.config/lindo

Be sure to check out that your Lindo folder is whether called "lindo" or "Lindo", depends on your setup.

from lindo.

IvanTurgenev avatar IvanTurgenev commented on June 11, 2024

Works on 16.04 copied the lindo configuration folder from 16.04 to 18.04 and it seems to work

from lindo.

Clover-Lindo avatar Clover-Lindo commented on June 11, 2024

So basically there are two issues here.

  • Downloading stuck (happened on many Windows machines as well)
  • The need to install libgconf-2-4 separately

I don't know what's the best way to split issues on GitHub so I will leave it this way.

I don't have any ETA to provide but these are definitely issues to be fixed.

from lindo.

sudogooglex avatar sudogooglex commented on June 11, 2024

On Ubuntu 18.10, in /app/window/official-game-update/official-game-update.component.ts,
sometimes the request callback contains a response.statusCode 404 but err is undefined.

download(url, json = false, weight = 1) {
        let currentProgress = 0;
        return new Promise((resolve, reject) => {
            progress(request(url, (err, response, body) => {
                    console.log(url, ' ok', response.statusCode, err); // Add this to see the error
                if (err) {
                    reject(err);
                }
                else if (response.statusCode >= 300) {
                    reject(response.statusCode);
                }
                else {
                    this.addProgress(weight - currentProgress);
                    if (json)
                        resolve(JSON.parse(body));
                    else
                        resolve(body);
                }
            })).on("progress", (state) => {
                let progress = state.percent * weight;
                this.addProgress(progress - currentProgress);
                currentProgress = progress;
            });
        });
    }

from lindo.

Clover-Lindo avatar Clover-Lindo commented on June 11, 2024

@sudogooglex I have never seen this before. Only on Ubuntu? Which file failed?

from lindo.

sudogooglex avatar sudogooglex commented on June 11, 2024

@Clover-Lindo Yes only on Ubuntu. The failed files are fixes.js and styles-native.css.

Well, this time, it seems Lindo couldn't download some files : no response.
The get request was sent but for some reason, wasn't recieved with any error code.
This gives the following logs :

[UPDATE] Checking for updates
main.bundle.js:7171 1
main.bundle.js:7173 2
main.bundle.js:7371 https://raw.githubusercontent.com/Clover-Lindo/lindo-game-base/master/manifest.json get
main.bundle.js:7371 https://proxyconnection.touch.dofus.com/manifest.json get
main.bundle.js:7371 https://proxyconnection.touch.dofus.com/assetMap.json get
main.bundle.js:7397 end !
main.bundle.js:7373 https://raw.githubusercontent.com/Clover-Lindo/lindo-game-base/master/manifest.json ok 200 null
main.bundle.js:7397 end !
main.bundle.js:7373 https://proxyconnection.touch.dofus.com/manifest.json ok 200 null
main.bundle.js:7397 end !
main.bundle.js:7373 https://proxyconnection.touch.dofus.com/assetMap.json ok 200 null
main.bundle.js:7180 3
main.bundle.js:7188 4
main.bundle.js:1973 [UPDATE] Updating required files
main.bundle.js:7198 5
main.bundle.js:7204 5 bis
main.bundle.js:7557 downloadMissingFiles Object
main.bundle.js:7577 downloadMissingFiles out
main.bundle.js:1973 [UPDATE] Downloaded missing files from one manifest
main.bundle.js:7557 downloadMissingFiles Object
main.bundle.js:7371 https://proxyconnection.touch.dofus.com/build/script.js get

As you can see, I have a response for manifest.json and assetMap.json, but not for script.js. When I try it in an other browser, it's ok. But in Lindo, the gui keep displays 'Downloading'.

I have tryed to change this line (/src/app/window/official-game-update/official-game-update.component.ts:87)

this.loadCurrentLindoManifest(), this.loadCurrentManifest(), this.loadCurrentAssetMap(), this.loadVersions(), this.loadCurrentRegex(),
to this line
this.loadCurrentAssetMap(), this.loadCurrentRegex(),

https://raw.githubusercontent.com/Clover-Lindo/lindo-game-base/master/manifest.json get
main.bundle.js:7372 https://proxyconnection.touch.dofus.com/manifest.json get
main.bundle.js:7372 https://proxyconnection.touch.dofus.com/assetMap.json get
main.bundle.js:7398 end !
main.bundle.js:7374 https://raw.githubusercontent.com/Clover-Lindo/lindo-game-base/master/manifest.json ok 200 null
main.bundle.js:7398 end !
main.bundle.js:7374 https://proxyconnection.touch.dofus.com/manifest.json ok 200 null
main.bundle.js:7398 end !
main.bundle.js:7374 https://proxyconnection.touch.dofus.com/assetMap.json ok 200 null
main.bundle.js:7181 3
main.bundle.js:7189 4
main.bundle.js:1973 [UPDATE] Updating required files
main.bundle.js:7199 5
main.bundle.js:7205 5 bis
main.bundle.js:7558 downloadMissingFiles Object
main.bundle.js:7372 https://raw.githubusercontent.com/Clover-Lindo/lindo-game-base/master/fixes.js get
main.bundle.js:7558 downloadMissingFiles Object
main.bundle.js:7372 https://proxyconnection.touch.dofus.com/build/styles-native.css get

This time, fixes.js and styles-native.css gives no response.
However, the bug don't always happens.
I'll try to find a solution.

from lindo.

sudogooglex avatar sudogooglex commented on June 11, 2024

I tryed to update "request" to "2.88.0", same error

from lindo.

sudogooglex avatar sudogooglex commented on June 11, 2024

I have added a timeout in the request, to stop after 2 seconds :
let options = {url: url, timeout: 2000}; request(options, (err, response, body) => {

instead of

request(url, (err, response, body) => {

and then it works again.

from lindo.

Dylvn avatar Dylvn commented on June 11, 2024

Hi,
I get stuck too in downloading on Pop_OS!

from lindo.

Related Issues (20)

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.