Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Data Observation | High Rate of 404 error for Images

insights

#1

Hi Team,
We observed for images in Android we are seeing 404(Not found) errors if Image not found and it’s captured in MobileRequestError but in iOS nothing captured in MobileRequestError if image downloading failed.


#2

Hi @sbhardwaj13,

Sometimes when we see this happening, it is because of a network object that was created before our agent began instrumenting and that rouge network object is handling these network calls; in this case, such a networking object may be handling all the calls somewhere else.

In order for the New Relic agent to instrument your app correctly and track all networking objects, the agent needs be the first thing that happens after the application launches. Could you walk me through what is happening before calling NewRelic.start(withApplicationToken:) in application(didFinishLaunchingWithOptions:) , if anything?

-Danyel


#3

Hi @dmurray, In our code before calling NewRelic.start(withApplicationToken:) this, we instantiate class and enable feature like : NewRelic.enableFeatures(NRMAFeatureFlags.NRFeatureFlag_NetworkRequestEvents)

This is happening only for images othewise whatever api failed captured in MobileRequestError, Issue happening for IOS platform only.


#4

Hi @sbhardwaj13,

Are you attempting to load images from the same endpoint for both Android and iOS? Can you please provide a permalink to your iOS app?

Thanks,
Danyel


#5

Hi @dmurray,
yes endpoints are same for both plateform.


#6

Hi @sbhardwaj13,

Thanks for getting back to me, I’d like to take a closer look at this. Can you post a permalink to your account? It’s safe to post a permalink on the forum; only New Relic staff and users with existing access to your account will be able to use it. This will allow us to take a look at the specifics and better aid in troubleshooting this issue.

Thanks!


#8

Hi @dmurray,
below is the permalink for same:
https://insights.newrelic.com/accounts/734056/dashboards/755020?now=1550043583993


#9

Hi @sbhardwaj13,

Thank you for sending the permalink. When looking into this, it appears the images you are calling are stored in s3 in AWS. Upon querying these endpoints in Insights, I’m consistently seeing a higher count for request failures in Android vs iOS.

I believe this may require a deeper dive into what’s causing the discrepancy between platforms. I am going to open a ticket and continue troubleshooting with you outside of the public forum. Once a solution is reached, I will update this thread.

You will receive an email once the ticket is created.


#10

Any updates here ? This is causing inconsistency between platforms.


#11

Hi @smahajan7,

No updates at this time. I have opened a private ticket with the original poster @sbhardwaj13, but have yet to receive a response. When I have more information regarding this issue, I will update this forum.


#12

Hi @dmurray,
Can you share that private ticket link here? so that I can check and update with in my team. I didn’t get notification regarding the same.


#13

@sbhardwaj13 - you should see the ticket in our Support Portal: https://support.newrelic.com/tickets/338920 - Just ensure you’re logged in with the same email address as here in the Explorers Hub