-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
The underlying connection was closed: An unexpected error occurred on a send. #20
Comments
Hey, that's weird I haven't updated any code since October 16th 2019. |
thanks for your replay |
I have been using APIConsumer for a long time. Help. |
Hello, I wasn't able to reproduce this issue. Let me give a try using Telegram API. Btw, what SQL Server version and .Net framework are you using? |
Microsoft SQL Server 2016 (RTM-GDR) (KB4019088) - 13.0.1742.0 (X64) Jul 5 2017 23:41:17 Copyright (c) Microsoft Corporation Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2016 Datacenter 6.3 (Build 14393: ) |
I'm from Ukraine |
Just as a random test, Could you please try calling RoutinNumbers api below:
|
the request does not work only with telegrams |
DECLARE @object AS INT; EXEC sp_OACreate 'MSXML2.XMLHTTP', @object OUT; EXEC sp_OAMethod @object, 'setRequestHeader', null, 'Content-Type', 'application/json' EXEC sp_OAMethod @object, 'responseText', @responseText OUTPUT EXEC sp_OADestroy @object |
не могли бы вы написать мне письмо на еьфшд lwal@и.ua, я вам отправлю полные данные , что-бы вы могли сами проверить и увидеть ошибки. |
The answer to your request worked perfectly. |
Could you write me a letter at [email protected], I will send you complete data so that you can check and see the errors yourself. |
Sure!, thank you! |
Thank you, I will wait for a test letter from you. |
Hey @lwal73 @ahmedarafaa Could you give a try with this version that I just loaded (2.0.0.4)? |
Thank you very much. You just saved me.
Thank you, thank you, thank you.
From: Geraldo Diaz [mailto:[email protected]]
Sent: Friday, February 14, 2020 5:21 AM
To: geral2/SQL-APIConsumer
Cc: lwal73; Mention
Subject: Re: [geral2/SQL-APIConsumer] The underlying connection was closed: An unexpected error occurred on a send. (#20)
Hey @lwal73 <https://github.com/lwal73> @ahmedarafaa <https://github.com/ahmedarafaa> Could you give a try with this version that I just loaded (2.0.0.4)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#20?email_source=notifications&email_token=AORNB7MRY6AGYCLSEOL5NBDRCYEZNA5CNFSM4KSLZCD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELXNYIY#issuecomment-586079267> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AORNB7ND6SDO3SFWPYI2HZ3RCYEZNANCNFSM4KSLZCDQ> . <https://github.com/notifications/beacon/AORNB7NHP5VRP6V7FOF5IE3RCYEZNA5CNFSM4KSLZCD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELXNYIY.gif>
|
Hello @geral2
|
Take this dll
CREATE ASSEMBLY [API_Consumer]
AUTHORIZATION dbo
FROM N'C:\CRL\API_Consumer.dll'
WITH PERMISSION_SET = UNSAFE
From: Arafa [mailto:[email protected]]
Sent: Friday, February 14, 2020 12:59 PM
To: geral2/SQL-APIConsumer
Cc: lwal73; Mention
Subject: Re: [geral2/SQL-APIConsumer] The underlying connection was closed: An unexpected error occurred on a send. (#20)
Hello @geral2 <https://github.com/geral2>
I try to configure this version 2.0.0.4 with fresh database fresh configuration and i get this error in this step
<https://user-images.githubusercontent.com/36604815/74525373-a04ee580-4f29-11ea-9503-e578d572b4fb.png> image
CREATE ASSEMBLY [API_Consumer] AUTHORIZATION dbo FROM N'C:\CLR\APIConsumer.dll' WITH PERMISSION_SET = UNSAFE
Warning: The Microsoft .NET Framework assembly 'system.net.http, version=4.0.1.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a.' you are registering is not fully tested in the SQL Server hosted environment and is not supported. In the future, if you upgrade or service this assembly or the .NET Framework, your CLR integration routine may stop working. Please refer SQL Server Books Online for more details.
Msg 6586, Level 16, State 1, Line 1
Assembly 'System.Net.Http' could not be installed because existing policy would keep it from being used.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#20?email_source=notifications&email_token=AORNB7NM5MUN76D33SJXQ4LRCZ2N3A5CNFSM4KSLZCD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELYN3VY#issuecomment-586210775> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AORNB7NKVCRQ44XXISNKMNTRCZ2N3ANCNFSM4KSLZCDQ> . <https://github.com/notifications/beacon/AORNB7NVP7WKIIHIPLBRA3DRCZ2N3A5CNFSM4KSLZCD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELYN3VY.gif>
|
@lwal73 from where you get this part are you compile it by your self or what? more explanation, please |
From: Arafa [mailto:[email protected]]
Sent: Friday, February 14, 2020 1:13 PM
To: geral2/SQL-APIConsumer
Cc: lwal73; Mention
Subject: Re: [geral2/SQL-APIConsumer] The underlying connection was closed: An unexpected error occurred on a send. (#20)
@lwal73 <https://github.com/lwal73>
In the new version, the dll name changed from "API_Consumer" to "APIConsumer"
from where you get this part are you compile it by your self or what? more explanation, please
FROM N'C:\CRL\API_Consumer.dll'
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#20?email_source=notifications&email_token=AORNB7KSWSWY7RWRH6FY2O3RCZ4DNA5CNFSM4KSLZCD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELYPA6Y#issuecomment-586215547> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AORNB7PSXO2S4OJVUP7CMG3RCZ4DNANCNFSM4KSLZCDQ> . <https://github.com/notifications/beacon/AORNB7IWVR4L66GZTBENLMLRCZ4DNA5CNFSM4KSLZCD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELYPA6Y.gif>
|
@lwal73 you're welcome. Would you mind starting the project?. @ahmedarafaa Is you check the last commit uploaded, I did not rename that dll. |
what should I do ? |
Btw, this issue was caused due TLS < 1.2 would be deprecated on March 2020. All servers will have to serve their contents using TLS 1.2 at least in order to keep compatibility with the main browsers. So, since we are using 4.0 Framework, the changed was adding the code below:
This specific part (SecurityProtocolType)3072;. Which correspond to SecurityProtocolType.Tls12 |
Works for me :D |
the last thing please could you please add "Go" below this line of code
|
Hello :),
I use APIConsumer since 1/1/2020
from 5/2/2020 I get this error
I use sql 2014
I tried the API from the postman it's working fine
The text was updated successfully, but these errors were encountered: