Receiving 400 Bad Request

I am receiving 400 Bad Request error by trying the js snippet provided with the model as it is to call the API, for instance by model distilbert/distilbert-base-cased-distilled-squad. I am using Chrome, up to date and provided a token.
Any help would be much appreciated.