Error connecting to Quickbooks Desktop POS through the web connector - quickbooks

I have a client that needs to connect his website to the Quickbooks Desktop POS 18.0. I Downloaded the Quickbooks webconnector, but the latest version gives an error and says I need quickbooks 2015 or later, so I downloaded the 2.1.0.30 version and was able to install it on the machine.
I then used the following php application https://github.com/consolibyte/quickbooks-php. I installed it on my server, got the ssl certificate and everything needed for security. I'm only using it for tests now, but the problem is that when I generate the .qwc file and use it on the web connector I get the following error: Error QBWC1048: QuickBooks Web Connector Could not verify the web application server certificate.
The domain I use is https://filcp.com/
Here is the certificate for the server
This is how my qwc file looks like
<?xml version="1.0"?>
<QBWCXML>
<AppName>My QuickBooks SOAP Server</AppName>
<AppID></AppID>
<AppURL>https://filcp.com/QuickBooks/SOAP/Server.php</AppURL>
<AppDescription>An example QuickBooks SOAP Server</AppDescription>
<AppSupport>https://filcp.com</AppSupport>
<UserName>userName</UserName>
<OwnerID>{57F3JK78-86F1-4FCC-B1FF-9H64VB813D20}</OwnerID>
<FileID>{57F3JK78-86F1-4FCC-B1FF-9H64VB813D20}</FileID>
<QBType>QBPOS</QBType>
<Notify>false</Notify>
<Scheduler>
<RunEveryNMinutes>10</RunEveryNMinutes>
</Scheduler>
<IsReadOnly>false</IsReadOnly>
</QBWCXML>
I followed many tutorials about configuring ie and all, but nothing has worked so far. I can access the application through ie, but I still get that error on the web connector.
Can someone help me to figure out what may be causing it and if there is any other way that I can connect the client's website to Quickbooks POS?

If you visit the URL you're referencing in the .QWC file:
https://filcp.com/QuickBooks/SOAP/Server.php
You can clearly see that you're getting back a response of:
500 Internal Server Error
Your code is broken. Fix your code. If you need further hope, post your code so we can help you. Also, post your logs from the Web Connector (hit the View Log button).

Related

How to use Google OAuth2.0 without out-of-band (OOB)

I have created new OAuth 2.0 Client IDs (application type = Desktop app). Then downloaded the OAuth client JSON file. Put the file into the folder where my code is looking. When I run the code locally on my PC it`s try to open following URL:
https://accounts.google.com/o/oauth2/auth?client_id={my_client_id}&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&scope={my_scope}&access_type=offline&response_type=code
and that is what I expect. Since the downloaded OAuth client has the parameter "redirect_uris":["http://localhost"]. So I expected the same thing when I ran this same code on the ubuntu server, but nope. The URL it proposes me visit is
https://accounts.google.com/o/oauth2/auth?client_id={my_client_id}&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope={my_scope}&access_type=offline&response_type=code
And here is the problem, I don't understand what I have to do to make my server pass this authorization.
I already tried to manually change this parameter of redirect_uris before visiting the destination to the same one I had on my local computer - to http%3A%2F%2Flocalhost%3A8080%2F, but I got this error in the browser:
Who can help me? What should I do?
Developers using installed applications need to stitch to using IP flow.
Loopback IP address (macOS, Linux, Windows desktop)
A key point on that page is
To receive the authorization code using this URL, your application must be listening on the local web server.
So as directed you would use http://127.0.0.1:port or http://[::1]:port The fact that you are getting a page not found is working as intended as you just have not set up the local web server as directed in the documetnation.
The authorization code needed for authorization can still be found in the URL browser. Currently this is the only information we have from Google and there is no other solution.

Connection to Microsoft Dynamics 365 working in console app but not in web app

I need to modify my existing code to connect to Microsoft Dynamics 365 instead of an on-premises installation. I'm currently using the Microsoft.Xrm.Tooling.Connector and we want to keep this so that the impact on the code is as low as possible.
So I have updated my connection string to use following format:
AuthType=ClientSecret;url=https://xxx.dynamics.com;ClientId=xxx;ClientSecret=xxx;
I have updated the nuget package Microsoft.CrmSdk.XrmTooling.CoreAssembly to the latest version 9.1.0.64. The other related packages were updated at the same time.
The code I use is:
var client = new CrmServiceClient(connstring);
Unfortunately this is not working in my .net 4.7.1 web.app
I get following errors:
CurrentAccessToken = 'CurrentAccessToken' threw an exception of type 'System.NullReferenceException'
LastCrmError = "One or more errors occurred. => An error occurred while sending the request. => Unable to connect to the remote server => A connection attempt failed because the connected party did not properly respond after a period of time, or established connection fai..."
I have also already tried to add following line but the error stays:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
To be sure that it's not related to my existing web app I have started a new project and I have included a new web app (mvc) and a new console app. Even in that new project the web app is not working but the console app is working.
A difference I see is that for CrmConnectOrgUriActual the console app contains XRMServices/2011/Organization.svc/web?SDKClientVersion=9.0.45.2156 but in the webapp this is only XRMServices/2011/Organization.svc/
Is there maybe something extra that need to be configured in the web app?
Can someone help me with this?
Update
I was able to see more of the error message and it was mentioning also following message: AuthorityUnable to connect to CRM: Need a non-empty authority
I did a new search on "Need a non-empty authority" based on the full error details.
One of the results was the following article: https://www.kashanahmed.com/2020/06/we-were-trying-to-connect-dynamics-365.html
So it seems that my issue was caused by the proxy server of our company.
Adding following lines in the web.config solved my issue
<system.net>
<defaultProxy useDefaultCredentials="true" enabled="true">
<proxy usesystemdefault="True" proxyaddress="http://theproxy" />
</defaultProxy>
</system.net>

Failed to load resource: The certificate for this server is invalid. - error when using my site in an iframe on IOS

my website is being used by a third party iframe, the page has a single form
the link for the iframe is as follows
https://MYWEBSITE.com:8443/en?token=eyJhbGciOiAiSFMyNTawfc%3D&token2=ABC
:8443 is there because I am using multiple sets of certificates, some only with port 8443, others only with port 443.
whenever using mobile IOS, the website first load fine within the iframe, but after I try to submit the form, I get the following error:
Failed to load resource: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “MYWEBSITE.com”, which could put your confidential information at risk.
I use aws with elastic beanstalk load balancer
Sorry my English, and thank you for your help :)
P.S. it works fine on chrome, only safari is the problem

timeout in telegram.bot webhook - asp.net mvc

I had been developed a telegram bot using Telegram.Bot.
I tried to rework with the bot, First I created bot using BotFather and got token.
I set webhook server api address in telegram api. But when I check webhookinfo it returns this error
https://api.telegram.org/botToken/getWebhookinfo
respone:
"last_error_date":1585419712,"last_error_message":"Connection timed out"
I checked it need TLS12 to have secure connection using
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
But It's not getting updates in my server and show time out error.
I tried posting using postman and ngrok to run on my iisexpress and I'm getting data and can sending messages to bot in my localhost.
But In hosting it's not working, whats wrong with new Telegram.Bot library or telegram server?
update
I checked with postman my hosting url, post man also cant connect to that url. what can be wrong with my codes?
This is response when i'm call update receiving URL in my hosting:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.10.34.35:443
I got problem, the certificate which we use should be valid one, not free.
For more information please study this link:
https://core.telegram.org/bots/webhooks

Exception reading response

I created an java stand alone application to send an email to gmail using smtp Everything fine with running it in eclipse. But i uploaded it in the bpm and using it as java integration service to send an email but it was showing an error is:::-Exception reading response.
please help me with this..

Resources