Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload of Client Viz always random, never from graph.json #4

Open
jpfreeley opened this issue Feb 1, 2022 · 6 comments
Open

Reload of Client Viz always random, never from graph.json #4

jpfreeley opened this issue Feb 1, 2022 · 6 comments

Comments

@jpfreeley
Copy link

jpfreeley commented Feb 1, 2022

I have successfully generated a graph.json file.

Manual inspection of the graph.json file seems to have proper IPs and edges for my network, however the client doesn't seem to use the data from graph.json but instead reloads a different, random, graph each time.

Any ideas?

@vlebo
Copy link

vlebo commented Feb 1, 2022

@jpfreeley i believe i have reverted this commit to fix it. But i used the tool only once so i don't recall correctly
f0e9dd0

@FlorianPfisterer
Copy link
Owner

Are only the IPs different each time or also the structure (edges)?

@vlebo
Copy link

vlebo commented Feb 1, 2022

I would need to check if i still have the project somewhere on my laptop. I am OOO this week, unfortunately.

@jpfreeley
Copy link
Author

@jpfreeley i believe i have reverted this commit to fix it. But i used the tool only once so i don't recall correctly f0e9dd0

Thanks. The problem is not at generat-graph execution. That I also tweaked and removed the random-ip calls .. the problem is at client display ..

@jpfreeley
Copy link
Author

Are only the IPs different each time or also the structure (edges)?

I'm not sure what I did differently .. all seems to be working now.

I wish I could tell you what made it work... I do not know.

There is no difference in my index.* files and your index.* files ..

The only thing I can think is that I that I was playing with vis-network/examples directly yesterday and maybe something reloaded or updated.

@jpfreeley
Copy link
Author

Are only the IPs different each time or also the structure (edges)?

I'm not sure what I did differently .. all seems to be working now.

I wish I could tell you what made it work... I do not know.

There is no difference in my index.* files and your index.* files ..

The only thing I can think is that I that I was playing with vis-network/examples directly yesterday and maybe something reloaded or updated.

OK .. I've experienced similar behavior again. This issue does not involve "random ips" but rather this is a cache/refresh problem of fetch('graph.json'). I'm running Firefox.

I solved it with the method propsed here (https://stackoverflow.com/a/59493583) using ?dummy= FYI, No other "cache header" methods worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants