This has been going on for the past 2 days, is there an override on JOSM that forces Bing imagery to show up anyways without it saying “Attribution is not loaded yet?”
Been going off and on for longer, a maintenance ticket at Trac opened and discussed. Was away for a few weeks, think it was switch to the ID editor used code, but then I thought about it the day before and immediately jinxed it. I’ve learned to not close JOSM end of day as this seems to happen in my afternoon CET. It will then not come back until the next morning. See #24122 (Bing aerial images "Attribution is not loaded yet") – JOSM for the gory details. ;p)
If you have a working bing.attribution.xml
(backup), then you could use it, provided that a new download is prevented by setting a suitable timestamp (preference cache.bing.attribution.xml
).
But please note that the g
parameter of the Bing URL determines the version (age of the images). So if a backup that is too old is used, the images may be out of date.
Deep search, found 2 in a roaming folder, removed the one of this afternoon that gave me deep space black hole, put the copy into the cache from last week and it worked… back in Bing mapping action.
Muchos
edit: Actually, the file appeared to be from 2023 and working great.
And to advance this workaround further, after copying the file from backup a number of times to get Bing showing again, simply changed the file to read-only before loading the imagery layer again and it keeps working, so far.
The issue should be resolved now, please try and give feedback
Thanks Aleksandar, I’m currently running into the same issue. From Help → Status Report
Identification: JOSM/1.5 (19307 en_AU) Windows 11 64-Bit
Java version: 21.0.4+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
and
Last errors/warnings:
- 00158.761 W: java.io.IOException: Attribution is not loaded yet
- 00158.761 W: java.io.IOException: Attribution is not loaded yet
The API continues to return an error message for me. Quote from the bing.attribution.xml
file:
<StatusCode>403</StatusCode><StatusDescription>Forbidden</StatusDescription><AuthenticationResultCode>DeniedCredentials</AuthenticationResultCode><ErrorDetails>The request was forbidden. Your credentials may be denied or suspended.</ErrorDetails>
Can you please go to cache folder and delete bing.attribution.xml file and then run Bing aerial imagery again?
That doesn’t help. The API still returns error 403, as above:
2025-02-21 13:31:12.939 INFORMATION: GET https://dev.virtualearth.net/REST/v1/Imagery/Metadata/AerialOSM?include=ImageryProviders&output=xml&key=...stripped... -> HTTP/1.1 403 (147 ms)
2025-02-21 13:31:12.940 INFORMATION: Successfully loaded Bing attribution data.
2025-02-21 13:31:12.987 SCHWERWIEGEND: Could not parse Bing aerials attribution metadata.
java.lang.NumberFormatException: For input string: ""
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
at java.base/java.lang.Integer.parseInt(Integer.java:565)
at java.base/java.lang.Integer.parseInt(Integer.java:685)
at org.openstreetmap.gui.jmapviewer.tilesources.BingAerialTileSource.parseAttributionText(BingAerialTileSource.java:183)
at org.openstreetmap.josm.data.imagery.CachedAttributionBingAerialTileSource.access$200(CachedAttributionBingAerialTileSource.java:37)
at org.openstreetmap.josm.data.imagery.CachedAttributionBingAerialTileSource$AttributionTimerTask.run(CachedAttributionBingAerialTileSource.java:146)
at java.base/java.util.TimerThread.mainLoop(Timer.java:572)
at java.base/java.util.TimerThread.run(Timer.java:522)
2025-02-21 13:31:12.992 WARNUNG: java.io.IOException: Attribution is not loaded yet
Content of the bing.attribution.xml
file after previous deletion:
<?xml version="1.0" encoding="utf-8"?><Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/search/local/ws/rest/v1"><Copyright>Copyright © 2025 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.</Copyright><BrandLogoUri>https://dev.virtualearth.net/Branding/logo_powered_by.png</BrandLogoUri><StatusCode>403</StatusCode><StatusDescription>Forbidden</StatusDescription><AuthenticationResultCode>DeniedCredentials</AuthenticationResultCode><ErrorDetails>The request was forbidden. Your credentials may be denied or suspended.</ErrorDetails><TraceId>...stripped...</TraceId><ResourceSets /></Response>
Im getting the same issue
Same here
2025-02-21 16:20:52.309 INFO: GET https://josm.openstreetmap.de/mapkey/Bing -> HTTP_1_1 200 (166 ms; 65 B)
2025-02-21 16:20:52.310 FINE: RESPONSE HEADERS: {accept-ranges=[bytes], content-length=[65], date=[Fri, 21 Feb 2025 15:20:52 GMT], etag=["41-59e9cacff37be"], last-modified=[Sat, 15 Feb 2020 12:43:58 GMT], server=[Apache/2.4.52 (Ubuntu)], strict-transport-security=[max-age=16070400; includeSubDomains], x-clacks-overhead=[GNU Terry Pratchett]}
2025-02-21 16:20:52.310 FINE: Downloading data...
2025-02-21 16:20:52.312 FINE: Contacting Server...
2025-02-21 16:20:52.312 FINE: REQUEST HEADERS: {Accept=*/*, Accept-Encoding=gzip, deflate}
2025-02-21 16:20:52.321 FINE: still missed 55 in the end
2025-02-21 16:20:52.340 INFO: AbstractTileSourceLayer: estimated visible tiles: 66, estimated cache size: 566
2025-02-21 16:20:52.642 INFO: GET https://dev.virtualearth.net/REST/v1/Imagery/Metadata/AerialOSM?include=ImageryProviders&output=xml&key=...stripped... -> HTTP_2 403 (329 ms)
2025-02-21 16:20:52.642 FINE: RESPONSE HEADERS: {:status=[403], access-control-allow-headers=[Content-Type,X-FD-Features,X-FD-FLIGHT,PreferAnonymous], access-control-allow-methods=[POST, GET, OPTIONS], access-control-allow-origin=[*], aks_4209_weight=[100], alt-svc=[h3=":443"; ma=86400], cache-control=[no-cache], content-type=[application/xml; charset=utf-8], date=[Fri, 21 Feb 2025 15:20:52 GMT], x-azure-ref=[20250221T152052Z-1549c45bccbj2hr9hC1BUDsfz40000000uxg00000000fh2s], x-cache=[CONFIG_NOCACHE]}
2025-02-21 16:20:52.642 FINE: Downloading data...
2025-02-21 16:20:52.642 FINE: Response body:
<?xml version="1.0" encoding="utf-8"?><Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/search/local/ws/rest/v1"><Copyright>Copyright © 2025 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.</Copyright><BrandLogoUri>https://dev.virtualearth.net/Branding/logo_powered_by.png</BrandLogoUri><StatusCode>403</StatusCode><StatusDescription>Forbidden</StatusDescription><AuthenticationResultCode>DeniedCredentials</AuthenticationResultCode><ErrorDetails>The request was forbidden. Your credentials may be denied or suspended.</ErrorDetails><TraceId>4ae71d2cf7eb7aaa615a20c5fd89cb22</TraceId><ResourceSets /></Response>
2025-02-21 16:20:52.642 INFO: Successfully loaded Bing attribution data.
2025-02-21 16:20:52.693 SEVERE: Could not parse Bing aerials attribution metadata.
java.lang.NumberFormatException: For input string: ""
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
at java.base/java.lang.Integer.parseInt(Integer.java:672)
at java.base/java.lang.Integer.parseInt(Integer.java:778)
at org.openstreetmap.gui.jmapviewer.tilesources.BingAerialTileSource.parseAttributionText(BingAerialTileSource.java:183)
at org.openstreetmap.josm.data.imagery.CachedAttributionBingAerialTileSource.access$200(CachedAttributionBingAerialTileSource.java:37)
at org.openstreetmap.josm.data.imagery.CachedAttributionBingAerialTileSource$AttributionTimerTask.run(CachedAttributionBingAerialTileSource.java:146)
at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
at java.base/java.util.TimerThread.run(Timer.java:516)
It is working now, for me at least. I didn’t change anything. Thanks
Same here - it wasn’t fixed immediately, but on my end it has been working for the last ~16 hours now, still going great! Thanks!
Working fine here now
The problem is not solved for me. Error code 403 again:
2025-02-24 10:25:21.575 INFORMATION: GET https://dev.virtualearth.net/REST/v1/Imagery/Metadata/AerialOSM?include=ImageryProviders&output=xml&key=...stripped... -> HTTP/1.1 403 (170 ms)
The bing.attribution.xml
contains again:
<AuthenticationResultCode>DeniedCredentials</AuthenticationResultCode><ErrorDetails>The request was forbidden. Your credentials may be denied or suspended.</ErrorDetails>
It worked yesterday, but now it’s not working again.
Presumably we are running into some kind of (daily?) limitation/quota.
The delete of bing.attribution.xml file in the cache and cache/backup folders and keeping a current ‘COPY’ suffixed replica in the cache folder to paste over the standard, if the incident reoccurs, continues to work well for me. The latest ‘backup’ I now in reuse is of 2.15.2025. Maybe I’m just lucking out.
Yes, this workaround (backup file) still works, of course. However, this does not solve the actual problem.
Going by the many JOSM tickets opened and closed as duplicates with comment by the maintainer that he’s written to MS to find a resolution, think it’s going to be an issue until then. Why ID has not and JOSM has the issue while users counts can hardly be compared, it feels like JOSM is the large volume consumer of Bing tiles overstepping the restrictions with the license expiration looming as well. Strangely at times I get the red text overlaying the actual Bing imagery on one or the other tile and it then going away again. Possible it’s because of my poor internet connection.