Developer forum

Forum » Dynamicweb 10 » GLS Shipping Provider

GLS Shipping Provider

Rene Poulsen
Rene Poulsen
Reply

I've just implemented the GLS Shipping Provider on a solution and it's working like it's supposed to when you enter a valid address. But - if you enter an address that somehow is not valid (an error in the zipcode / city) - I just end up on a white screen with this message:

"System.Exception: 400-INVALID-VALUE: at Dynamicweb.Ecommerce.ShippingProviders.GLS.Service.GLSRequest.SendRequest(String baseAddress, CommandConfiguration configuration, TokenData tokenData, Order order) at Dynamicweb.Ecommerce.ShippingProviders.GLS.Service.GLSService.GetParcelShops(String address, String countryCode, Int32 limit, Int32 distance, Order order) at Dynamicweb.Ecommerce.ShippingProviders.GLS.GLS.RenderFrontend(Order order) at Dynamicweb.Ecommerce.Cart.Renderer.RenderShipping(Template template, Order order, Boolean selectAllDeliveries, IEnumerable`1 deliveries) at Dynamicweb.Ecommerce.Cart.Renderer.RenderStep(Order order, PageView pageView, IEnumerable`1 validationErrors, IEnumerable`1 removedProductNames, Boolean useNewsletterSubscription, String imagePatternProductCatalog, Boolean selectAllPayments, IEnumerable`1 payments, Boolean selectAllDeliveries, IEnumerable`1 deliveries, Template template) at Dynamicweb.Ecommerce.Cart.Renderer.RenderStep(Order order, ModuleSettings settings, Int32 stepIndex, PageView pageView, IEnumerable`1 validationErrors, IEnumerable`1 removedProductNames) at Dynamicweb.Ecommerce.Cart.Frontend.RenderStep(Order order, Int32 stepIndex, IEnumerable`1 removedProductNames, IEnumerable`1 errors) at Dynamicweb.Ecommerce.Cart.Frontend.RenderStep(Order order, Int32 stepIndex, IEnumerable`1 removedProductNames) at Dynamicweb.Ecommerce.Cart.Frontend.GetModuleContent()".

It would be REALLY nice if you could deal with this error in the integration to GLS - and just enable us to show a message like "No parcel shops found for you address", "You entered an invalid address" or something like that. It's a really bad experience for a user to end up on a white screen like this.

Skærmbillede_2025-04-30_094155.png

Replies

 
Rasmus Sanggaard Dynamicweb Employee
Rasmus Sanggaard
Reply

Hi Rene,

 

Thanks. I have created a bug, it shouldn't fail like that. #24092

 

BR Rasmus Sanggaard

 

 
Rene Poulsen
Rene Poulsen
Reply

Hi Rasmus,

Perfect :-) Looking forward to a fix.

 

You must be logged in to post in the forum