I am trying to load one surface reflectance image from Sentinel-2 MSI Level-2A in Google Earth Engine, but I get the following error:
ImageCollection (Error) Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
Here is my code and the roi:
var roi = ee.Geometry.Point(-94.86,36.93);
var image = ee.ImageCollection('COPERNICUS/S2_SR')
.filterBounds(roi)
.filterDate('2017-05-01', '2017-06-30')
.sort('CLOUD_COVER')
.first();
Map.addLayer(image, {bands: ['B4', 'B3', 'B2'],min:0, max: 0.2}, 'True colour image');
Any idea why this is?