I have a problem when I'm connecting BIS, I get an answer from server 400. That is a bad request. But when I'm connecting wifi, I don't have this problem. This problem appear when I have redirect in the web page and there are some files CSS didn't appear correctly.
I use this suffix ;deviceside=false;ConnectionType=mds-public when i'm connecting BIS.
Any one have an idea about that?
Related
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
An annoying and persistent issue that I've been facing is a "Misdirected Request Error The client needs a new connection for this request as the requested host name does not match the Server Name Indication (SNI) in use for this connection" when carrying out an AJAX request from my front end to the back end. CORS origin has been taken care of. The weird thing is that this issue only occurs with Apple devices (iPhone/Mac Book) on Safari and Chrome. Other Android and Windows devices work seamlessly. I tried purchasing an additional dedicated SSL certificate to my domain which includes two subdomains (the frontend and backend) from GoDaddy.
Any other tips/solutions please?
Issuing a separate SSL certificate for the two sub-domains did the trick. Make sure that the two sub-domains are not grouped under the same certificate.
I'm currently receiving
{"code": 400, "error_type": "OAuthException", "error_message": "No matching code found."}
while attempting to get a user's access token on one of our servers. This is occurring while using the REST Client Chrome extension and from our web application, on one particular server.
I am able to receive the user's access token from my local machine and a different server using the same code and extension.
Could our IP have been blacklisted from receiving access tokens? Has anyone else run into this issue?
Thanks,
EDIT
Heard back from Instagram support, this was an issue on their end and has been fixed. Thanks for the help.
Yes your intuition is correct. It is likely that you made too many incorrect API calls that Instagram disabled your IP. I started dealing with Instagram API this week, at the beginning it was working but today I started getting the same error you got. The code also works fine locally or on any other machine. The only explanation to this is that my IP is blocked. Just switch your IP and you should be fine!
SOLVED:
The reason for this error is the ip address from which you are trying to connect to Instagram and get access_token. After contacting my network provider and changing my ip everything got fixed.
To figure out if your issue is caused by your local ip (not the server ip) try to connect to your app via mobile network or any other network different from yours:
- If it works you need to change your local ip.
-If it does not work - change your server ip cause it is probably banned by instagram for lots of malicious requests.
I was having the same trouble: users couldn't authenticate through Instagram and the error returned was "OAuthException" and "No matching code found." Started on 4/28/15 but didn't catch until two days later. Only in production, not staging, so it was almost certainly IP.
I posted to the Instagram developer help center (https://help.instagram.com/contact/438525166257277) yesterday at 7pm and the problem was fixed by this morning, with a cryptic email from their support at 11am ("The issue has been resolved").
I have been loading UIWebViews with a set of URL's for a long time while testing my app with no problem. Now I get 502 Bad Gateway Error message when I load my UIWebView.
The URL's I use all came from the same source and all start with:
http://www.gijon.es/eventos/show/
Some URLs are for example:
http://www.gijon.es/eventos/show/21514-ciclo-ciencia-x-cine
http://www.gijon.es/eventos/show/20611-mercado-ecologico-y-artesano
I have tested the URLs from my browser and they work Ok.
I have tested doing a Log that this are actually the URLs just before creating the request.
I have made a testApplication with just a UIWebView loading this URL's and it fails the she way my app does.
Any other URL like http://google.com loads nicely.
How can I debug this problem? Should it be a problem with the remote server? Can it be a problem in my configuration?
The website is configured to handle requests differentely according to the browsers user agent.
So when you access it with UIWebView you are sending as a user agent iPhone, which takes you to a different page on the site.
Due to miscofiguration from their webserver you are seeing a 502 Bad Gateway error (probably they are running NginX).
To verify this, open Firefox, download the User Agent Switcher addon, select as a user agent iPhone 3.0, then open http://www.gijon.es/eventos/show/21514-ciclo-ciencia-x-cine
You will see the 502 bad gateway error
If you want to solve this, you can modify the default UIWebView user agent (set it to safari something). The way to do this is here
I am facing a network connection issue. My client has sent me following mail and I am having no idea what I should do in this condition
"One of our companies have asked if it would be possible for them to use their apps with the data going via a proxy. The hve disabled WAP on their BES so they are unable to use the application. I think in this instance the data needs to be routed through the BIS."
For using BIS , I have read that application needs to be approved by RIM and we need to append a secret String provided by the RIM to the connection URL.
For BES we append ;deviceside=false in case of simulator.
For TCP we append ;deviceside=true to the connection URL.
For Wifiwe append ;interface=wifi to the connection URL.
What should we append in the case of BIS?