Skip to Content
2
Jun 23 at 08:10 AM

swagger not working basesite null . Commerce Version 2205

192 Views Last edit Jun 23 at 09:32 PM 9 rev

Goodmorning,

I have problem with swagger. When I call this url https://localhost:9002/occ/v2/swagger-ui.html there is follow problem:

<errorList>
<errors>
<message>Parameter baseSite can not be null</message>
<type>IllegalArgumentError</type>
</errors>
</errorList>

I do not understand why there is this problem.

Log error:

INFO  [hybrisHTTP22] [AbstractRestHandlerExceptionResolver] Translating exception [java.lang.IllegalArgumentException]: Parameter baseSite can not be null
ERROR [hybrisHTTP22] [AbstractRestHandlerExceptionResolver] java.lang.IllegalArgumentException: Parameter baseSite can not be null
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:144)
	at de.hybris.platform.servicelayer.util.ServicesUtil.validateParameterNotNull(ServicesUtil.java:108)
	at de.hybris.platform.servicelayer.util.ServicesUtil.validateParameterNotNullStandardMessage(ServicesUtil.java:120)
	at de.hybris.platform.commerceservices.consent.impl.DefaultCommerceConsentService.getLatestConsentTemplate(DefaultCommerceConsentService.java:77)
	at com.hybris.yprofile.common.Utils.getActiveConsentModelForCustomerAndBaseSite(Utils.java:168)
	at com.hybris.yprofile.consent.services.DefaultConsentService.setConsentReferenceInConsentModel(DefaultConsentService.java:465)

Stefania