Skip to content

Exception logs are obfuscated #1546

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

Closed
memishood opened this issue Jul 12, 2023 · 12 comments
Closed

Exception logs are obfuscated #1546

memishood opened this issue Jul 12, 2023 · 12 comments
Assignees
Labels
bug needs-clarification This issue needs more information to be resolved Platform: Dart symbolication

Comments

@memishood
Copy link

memishood commented Jul 12, 2023

Platform

Flutter Web

Obfuscation

Disabled

Debug Info

Disabled

Doctor

[✓] Flutter (Channel stable, 3.10.5, on macOS 13.4.1 22F82 darwin-arm64, locale en-TR)
• Flutter version 3.10.5 on channel stable at /Users/emrememis/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 796c8ef792 (4 weeks ago), 2023-06-13 15:51:02 -0700
• Engine revision 45f6e00911
• Dart version 3.0.5
• DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/emrememis/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E300c
• CocoaPods version 1.12.1

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.1)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.79.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.4.1 22F82 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 114.0.5735.198

[✓] Network resources
• All expected network resources are available.

• No issues found!

Version

7.8.0

Steps to Reproduce

pubspec.yaml:

dependencies:
  ...
  sentry_flutter: ^7.8.0
dev_dependencies:
  ...
  sentry_dart_plugin: ^1.4.0

sentry:
  upload_debug_symbols: true
  upload_sources: true
  upload_source_maps: true
  project: my-project
  org: my-org
  auth_token: my-auth-token
  wait_for_processing: true
  log_level: error
  1. flutter build web --release --source-maps
  2. dart run sentry_dart_plugin

console result for sentry_dart_plugin:

Building package executable... 
Built sentry_dart_plugin:sentry_dart_plugin.
[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 0% reading config values..        
Downloading sentry-cli from https://downloads.sentry-cdn.com/sentry-cli/2.19.1/sentry-cli-Darwin-universal to .dart_tool/pub/bin/sentry_dart_plugin/sentry-cli

Downloaded Sentry CLI binary checksum verification passed successfully (hash: some hash).

Sentry CLI downloaded successfully.
☑ reading config values                                                             
☑ validating config values                                                             
[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 18% uploading debug symbols..                                
> Found 2 debug information files

> Resolved source code for 0 debug information files

> Prepared debug information files for upload

> Nothing to upload, all files are on the server
☑ uploading debug symbols                                                             

Created release [email protected]+1
[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 27% uploading source maps..                               
> Found 8 files

> Analyzing 8 sources

> Rewriting sources

> Adding source map references

> Bundled 8 files for upload
> Bundle ID: some bundle id

> Uploaded files to Sentry

> File processing complete
> Organization: my-org
> Project: my-project
> Release: [email protected]+1
> Dist: 1
> Upload type: artifact bundle

Source Map Upload Report
  Scripts
    ~/flutter.js
    ~/flutter_service_worker.js
  Minified Scripts
    ~/canvaskit/canvaskit.js (sourcemap at ../main.dart.js.map)
    ~/canvaskit/chromium/canvaskit.js (sourcemap at ../../main.dart.js.map)
    ~/canvaskit/skwasm.js (sourcemap at ../main.dart.js.map)
    ~/canvaskit/skwasm.worker.js (sourcemap at ../main.dart.js.map)
    ~/main.dart.js (sourcemap at main.dart.js.map)
  Source Maps
    ~/main.dart.js.map

> Found 148 files

> Analyzing 148 sources

> Rewriting sources
> Adding source map references

> Bundled 148 files for upload
> Bundle ID: some bundle id

> Uploaded files to Sentry

> File processing complete
> Organization: my-org
> Project: my-project
> Release: [email protected]+1
> Dist: 1
> Upload type: artifact bundle

Source Map Upload Report
  Scripts
    ~/lib/main.dart
☑ uploading source maps                                                             

Could not determine any commits to be associated with a repo-based integration. Proceeding to find commits from local git tree.

No commits found. Leaving release alone. If you believe there should be some, change commits range or initial depth and try again.

Finalized release [email protected]+1

Expected Result

Logs are not hidden in sentry io

Actual Result

Logs are still hidden for some reasons

Screenshot 2023-07-12 at 21 51 17

Are you willing to submit a PR?

None

@krystofwoldrich
Copy link
Member

Hi,
thank you for the message,
the event titles are not symbolicated at the moment, but we are working on it, more information -> #2805.

Is the stack trace of the error symbolicated (not obfuscated)?

@github-project-automation github-project-automation bot moved this to Needs Discussion in [DEPRECATED] Mobile SDKs Jul 13, 2023
@krystofwoldrich krystofwoldrich moved this from Needs Discussion to Needs More Information in [DEPRECATED] Mobile SDKs Jul 13, 2023
@krystofwoldrich krystofwoldrich added the needs-clarification This issue needs more information to be resolved label Jul 13, 2023
@memishood
Copy link
Author

Hi,
thanks for the answer,
stack trace is also obfuscated

Screenshot 2023-07-13 at 13 24 37

@marandaneto
Copy link
Contributor

@memishood can you link me to an issue on sentry.io so I can check if the metadata is correct?

@memishood
Copy link
Author

@marandaneto sure, how can I figure out permissions stuff in order to you can see?

@marandaneto
Copy link
Contributor

@marandaneto sure, how can I figure out permissions stuff in order to you can see?

If it's a sentry.io issue, I have enough permission for debugging, no worries, just share the issue's url.

@memishood
Copy link
Author

I have created a public link for the issue
https://webmob-ou.sentry.io/share/issue/324a1ed819d24adda94f19b43b4a180f/

@marandaneto
Copy link
Contributor

I have created a public link for the issue webmob-ou.sentry.io/share/issue/324a1ed819d24adda94f19b43b4a180f

Thanks, will look into it.

@marandaneto marandaneto moved this from Needs More Information to Needs Investigation in [DEPRECATED] Mobile SDKs Jul 14, 2023
@marandaneto
Copy link
Contributor

@memishood getsentry/sentry#52868 should address this issue, let's wait for this to be merged/released, and then we can test it again.

@marandaneto marandaneto moved this from Needs Investigation to In Progress in [DEPRECATED] Mobile SDKs Jul 14, 2023
@marandaneto
Copy link
Contributor

Closed by getsentry/sentry#52868
@loewenheim is this published already?
@memishood let us know in case you find any issues again.

@github-project-automation github-project-automation bot moved this from In Progress to Done in [DEPRECATED] Mobile SDKs Jul 17, 2023
@loewenheim
Copy link

It's deployed, yes.

@memishood
Copy link
Author

I’ll test it and let you know asap, thanks for your interests

@memishood
Copy link
Author

I just tested, I verify that is fixed now, thank you again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs-clarification This issue needs more information to be resolved Platform: Dart symbolication
Projects
Archived in project
Development

No branches or pull requests

4 participants