Sending a mail with contact form in joomla - joomla

Im getting an error
The gateway did not receive a timely response from the upstream server or application.
When Im trying to send mail in joomla using inbuilt contact form

Open your template's index.php file, and add the following line to its very beginning:
ini_set('default_socket_timeout', 10000);
Please post back here if it doesn't work for you.

Related

Slack Bot OpenModal Error: missing_post_type

I newly started with Slack Bot programming and I got an issue.
I am using Zapier as a webhook, and I created a new message with a button.
Now I want to open a modal like documented here: https://api.slack.com/methods/dialog.open#arg_token
For that, I make a POST Request via Zapier Webhooks like this:
Instead of that the modal opens, I get a response with an error message "error
missing_post_type"
I hope some expert can help me with this issue.
Thank you for the support!
The solution can be found in the linked documentation.
The method was called via a POST request and included a data payload, but the request did not include a Content-Type header.
You only need to add the content-type header. Then the post request should work.
Content-Type: application/json

Display custom error message in ajax over HTTP/2

In my MVC application, I have used Ajax's Response.StatusText to display custom error messages to user whenever there is some error.It works fine but when I deploy my application on AWS, the StatusText gets removed and only the code is displayed. Got to know that because of using HTTP/2, the statusText gets removed.
Is there a way to show custom error message in Ajax error over HTTP/2 ?
Thanks in advance.
I don't think the HTTP Status is the best place to put these. You should either put this status in the body, or possibly in a custom HTTP header.

JMeter Internal server Error, Response Code : 500 on posting a form

JMeter Internal server Error, Response Code : 500 on posting a form.
I am trying to load test our banking application with JMeter.I have successfully logged in to the application. Now I am trying to create an accuont. Account opening form has five pages and I am getting internal server error when I post the first page of the account opening process.
I have provided all possible values which are required for posting first page (As required in the browser to make it go to next page).
I have added the Cookie manager and Header manager also.
But this fails in JMeter.
Any help will be highly appreciated.
You may need to add "Http Header Manager" user your "Http Request" which is failing.
Click on add button to add on column under "Headers stored in the Header Manager"
Add Name : Content-Type
Add value : application/json
save it and run it.
This may solve your 500 (internal server error) error problem.
The best thing is to try recording to ensure you’re not missing:
header
cookie
parameter
or any additional http request.
Read:
https://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.html

Error message when using google contact api

When I try to fetch contacts from gmail, I received this error message:
The page you have requested cannot be displayed. Another site was requesting access to your Google Account, but sent a malformed request. Please contact the site that you were trying to use when you received this message to inform them of the error. A detailed error message follows:
The site "http://url.com" has not been registered.
May I know how to rectify it? Thanks!
Have you tried registering the domain with Google's API?
docs:
https://developers.google.com/accounts/docs/RegistrationForWebAppsAuto#new
resgister url:
https://accounts.google.com/ManageDomains
Also if you are making calls from http and not https you may be seeing problems there too.

Implementing cybersource using Ajax

I am using cybersource as the payment gateway for my application. The payment information is sent correctly if we post the form without using an Ajax request.
Now we need to implement this by using an Ajax request. I tried passing the information to cybersource but got a javascript error "access denied" when I tried to submit the form using Ajax post request.
When I tried to debug this issue the line "mypostrequest.open("POST", "theUrl", true);" was giving the error.
Is there any reason why a site might block a post request through Ajax and not block a request from the usual form post ?
Thanks in advance.
There should be no difference, from the perspective of the CyberSource server, between a post via AJAX or a normal form submit, so the server would not have a basis for deciding to block a post via AJAX. The "access denied" problem might be due to the fields and values you included in your post. Make sure all required fields are included.

Resources