mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

non-Mapbox sources are billed in v1.x

Open hyperknot opened this issue 3 years ago • 4 comments

Steps to Trigger Behavior

Load a non-Mapbox source with Mapbox access token specified in v1.x. The load will be billed by Mapbox.

Detail

The bug is a missing bracket on the 2nd line here: https://github.com/mapbox/mapbox-gl-js/blob/50adf1cc14e5aef09099f15c5cb803eaa5f72a48/src/util/mapbox.js#L392-L397

This means everyone who used 1.x with an access token was billed for non-Mapbox source loads.

Simple bug - probably thousands of dollars billed in error to customers.

Note: using Prettier would have made it obvious to see this bug.

hyperknot avatar Aug 16 '22 13:08 hyperknot

Thanks for the report, Zsolt. We've worked with the small number of impacted users to fix the issue by removing the Mapbox access token if they're not using a Mapbox source. We don't have any plans to provide a new gl-js v1 release with this changed as a workaround exists for someone to remove their Mapbox access token.

mathewantony31 avatar Aug 31 '22 19:08 mathewantony31

My project was definitely affected and I found no way except for fixing the brackets myself. Removing the token is not an option as I need to be able to switch between Mapbox and non-Mapbox maps.

I was charged for the non-Mapbox usage, I'm trying to communicate it with billing now.

hyperknot avatar Sep 17 '22 01:09 hyperknot

Thanks for raising that, Zsolt. I've prioritized the request with the billing team who've processed a refund on your account.

mathewantony31 avatar Oct 06 '22 19:10 mathewantony31

Thanks @mathewantony31 they've issued me a refund now.

hyperknot avatar Oct 06 '22 20:10 hyperknot

Thanks, everyone! This is now fixed in the v1.13.3 release.

stepankuzmin avatar Jan 19 '23 11:01 stepankuzmin