laptop and a wrench

Bug

While using the goTo() method of class "esri/views/MapView" in an application using ArcGIS API for JavaScript 4.6, it shows a couple of DEPRECATED warnings for "always()" and "catch()".

Last Published: February 9, 2018 ArcGIS GIS Server
Bug ID Number BUG-000110597
SubmittedJanuary 5, 2018
Last ModifiedJune 5, 2024
Applies toArcGIS GIS Server
Version found10.5
Operating SystemWindows OS
Operating System Version2012 R2
StatusWill Not Be Addressed

Additional Information

These warnings are expected in this version and are there to inform the users about an important change in our API. Please see more information in this blog: https://blogs.esri.com/esri/arcgis/2017/12/14/making-better-promises/ The then() method still works at 4.6, but throws warnings in the browser console. To prevent these warning messages from appearing, insert the below has flag into your code. Because this is an important breaking change, then() is not removed at 4.6, and is removed at a later version.

Steps to Reproduce

Bug ID: BUG-000110597

Software:

  • ArcGIS GIS Server

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options