Ocean-Data-Map-Project
Ocean-Data-Map-Project copied to clipboard
Map-box-tile API endpoint throws FileExistError
trafficstars

Weird. The directory creation is wrapped in an if:
if not os.path.isdir(basedir):
os.makedirs(basedir)
The directory that is created is used for multiple tiles (only zoom and x, the filename contains the y coordinate), so probably this is happening when multiple tiles from the same z and x are being requested at the same time (race condition)? Not sure how to approach this.
Yeah race condition is possible. The exception itself is vague because it may be thrown when a file or directory already exists.