Zend certified PHP/Magento developer

rest api url is wrong – undefinedrest/eu/V1/carts/

I have a M2.2 shop and I just upgrade it to M2.4
I have MagePlaza OneStepCheckout installed.
When I go to checkout, I get errors on my console regarding the requests to the api.
Somehow the Url is wrong and a “undefined” is added to the request.
The calls that are being done are:

  • /onestepcheckout/undefinedrest/eu/V1/carts/mine/estimate-shipping-methods-by-address-id

  • /onestepcheckout/undefinedrest/eu/V1/carts/mine/set-payment-information

  • /checkout/cart/undefinedrest/eu/V1/carts/mine/estimate-shipping-methods

My base url secure and non secure url are correct.

Did anyone knows how to solve this issue?

Thany you