Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid URI: The hostname could not be parsed. #6

Open
trevster344 opened this issue Jan 17, 2024 · 1 comment
Open

Invalid URI: The hostname could not be parsed. #6

trevster344 opened this issue Jan 17, 2024 · 1 comment

Comments

@trevster344
Copy link

trevster344 commented Jan 17, 2024

`
builder.Services _

.AddTransient(Of LiteX.Sms.Core.ILiteXSmsSender, LiteX.Sms.Sinch.SinchSmsSender)(Function(provider As IServiceProvider)

                                                                                                         Dim vault = provider.GetRequiredService(Of Domain.Security.MyVault)              
                                                                                                                                       
                                                                                                         Dim key = vault.Secret("sinchKey")
                                                                                                         
                                                                                                         Dim secret = vault.Secret("sinchSecret")
                                                                                                         
                                                                                                         Dim config = New SinchConfig() With {
                                                                                                            .ApiKey = key,
                                                                                                            .ApiSecret = secret,
                                                                                                            .FromNumber = "*********",
                                                                                                            .EnableLogging = True
                                                                                                            }
                                                                                                            
                                                                                                         Return New SinchSmsSender(config)
                                                                                                     End Function)`

Not sure if I caused this to happen with my configuration. Once the SinchSmsSender gets the configuration it throws this error.

Error happens with either versions 6.1.0 or 7.0.0. My project is .net 7.0.

I would appreciate any guidance.

@a-patel
Copy link
Owner

a-patel commented Jan 17, 2024

Can you please share your configuration details (startup, app settings, etc.)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants