GleapSDK / JavaScript-SDK

Gleap helps developers build the best software faster. It is your affordable in-app bug reporting tool for apps, websites and industrial applications.
MIT License
5 stars 1 forks source link

Network logging not working #11

Closed arnoBruynseels closed 3 years ago

arnoBruynseels commented 3 years ago

Version: "bugbattle": "^3.3.0",

Using the following to enable network logging does not work. In the Bugbattle dashboard, the the network logging is not captured and tells you to still enable the logging.

BugBattle.enableNetworkLogger();

image

boehlerlukas commented 3 years ago

@arnoBruynseels thanks for the report! We will take a look into this asap and keep you updated.

Can you confirm that there were also network events happening? It might still show "No network logs" when there were no network events happening (xmlhttprequest or fetch will currently be logged - mostly all major libraries are based on them, so they should also be covered as well).

Thanks for your help!

arnoBruynseels commented 3 years ago

Yes I can confirm that there were network request happening

boehlerlukas commented 3 years ago

@arnoBruynseels thanks for the update. One more question: which library are you using for the network requests?

arnoBruynseels commented 3 years ago

@boehlerlukas

We use fetch API:

https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API

boehlerlukas commented 3 years ago

@arnoBruynseels

We dug into your issue today and tried to reproduce it, but couldn't so far. One of the things that came to our minds was that Bugbattle get's initialized after the network requests are done - this would not work as it's not possible to access already processed requests.

Is there any chance we could get a glimpse into the app, which is missing the network requests? This would help us enormously to dig into the issue and fix it asap.

Thanks for your help! 🤝

boehlerlukas commented 3 years ago

@arnoBruynseels we had another deep dive into the issue today and found one possible issue - the issue is fix with the latest version. It would be really great if you could give it another shot and see if the fix works for you.

boehlerlukas commented 3 years ago

@arnoBruynseels do you have any update on the issue? I will close it for now. Please let us know if the issue persists.