EC2 Java Spring Boot App Request Problem

0

Hi everyone, I have a java spring boot application. The application scrapes some pages with jsoup. On localhost everything works fine but i set up ec2 server with elastic beanstalk and i am trying to request my api but api response with "java.net.SocketTimeoutException: Connect timed out" so what i am supposed to do.

  • What are the security group settings for your Beanstalk? Does it allow outbound connections? Can you test it with something like amazon.com to make sure? If that is ok then it is very possible that the destination API is blocking traffic from AWS to prevent scraping at scale. Can you share the site where you're getting the timeout?

  • i have tried and the api works with another url but url i want doesn't work still.

Wallog
질문됨 6달 전301회 조회
2개 답변
0

Make sure CORS is enabled for your application to scrape external pages.

profile pictureAWS
중재자
답변함 5달 전
0

i have tried and the api works with another url but url i want doesn't work still.

Wallog
답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠