-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for Payment 10/8] [$250] [Crashlytics] TypeError: undefined is not a function #46117
Comments
Current assignee @CortneyOfstad is eligible for the Bug assigner, not assigning anyone new. |
@CortneyOfstad Huh... This is 4 days overdue. Who can take care of this? |
@TMisiukiewicz it was indicated on one of the other Crashlytic GHs that the logs are truncated. Any way you could pull up the full logs? Thanks! |
@CortneyOfstad Eep! 4 days overdue now. Issues have feelings too... |
can we change it to weekly? |
@CortneyOfstad this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@CortneyOfstad Still overdue 6 days?! Let's take care of this! |
@CortneyOfstad 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
Sorry, was OoO, so adjusting the frequency now! |
Hey @CortneyOfstad 👋 To reproduce this I went through the Logs and Breadcrumbs section here in firebase crashlytics but I couldn't reproduce it. Also, for another similar event the logs and breadcrumbs were different, so I am not sure whether following are a correct reproduction steps but I am writing these from the link above:
After the last step, we get an error in firebase crashlytics. I tried it but I couldn't reproduce it. Now, let's try to find the root cause in the code using the help from the stack trace. The function which is causing this error is We get an error To fix this, we can add a diff --git a/lib/str.ts b/lib/str.ts
index e1dd37c..432f8ed 100644
--- a/lib/str.ts
+++ b/lib/str.ts
@@ -992,6 +992,7 @@ const Str = {
* without query parameters
*/
getExtension(url: string): string | undefined {
+ if (typeof url !== 'string') return undefined;
return url.split('.').pop()?.split('?')[0]?.toLowerCase();
},
|
Thanks for the detailed explanation @hurali97! @TMisiukiewicz reviewing the comment above, there may potentially be an issue in the breadcrumb flow from the original issue that this was created from. Do you have any insight into what could potentially be missing or needs to be adjusted in order to recreate? |
@CortneyOfstad currently breadcrumbs are tied only to navigation events only, and this, unfortunately, it gaves us very limited knowledge about users actions. When I have a bit more capacity, I am planning to review if there is a space for improvements in this area. Also, the proposal from @hurali97 looks good to me 👍 |
@CortneyOfstad do you think we can move forward with creating a PR to fix this? |
Sorry for the delay here — PR looks great! Thank you! |
@francoisl, @CortneyOfstad, @paultsimura, @hurali97 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Oh, we still need a PR to bump the expensify-common version in |
We are about to bump to |
@francoisl, @CortneyOfstad, @paultsimura, @hurali97 Still overdue 6 days?! Let's take care of this! |
@deetergp I think you can pull them in. There is nothing breaking here – just some extra precautions & logging. |
@francoisl, @CortneyOfstad, @paultsimura, @hurali97 Eep! 4 days overdue now. Issues have feelings too... |
Still waiting on #49038 to be merged |
Not overdue. |
@francoisl, @CortneyOfstad, @paultsimura, @hurali97 Eep! 4 days overdue now. Issues have feelings too... |
@francoisl #49038 was merged 4 days ago. What's the plan here now? |
Ah nice, and it was just deployed to production too. I think we can issue payments and close this. With the new |
The corresponding version bump was deployed to production on Oct 1. Payment is due on 2024-10-08. |
I don't think this GH is suitable for a BZ checklist: it is more like a preventive change with extra logging to detect and avoid previously uncaught crashes. |
@paultsimura — i sent you an offer in Upwork here. Please let me know once you accept, and I'll get that paid ASAP. Thanks! |
Accepted, thanks @CortneyOfstad |
Payment Summary@paultsimura — paid $250 via Upwork |
Coming from this GH — #45054 (comment)
Reported by @TMisiukiewicz
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @paultsimuraThe text was updated successfully, but these errors were encountered: