Digital Membership Card Software with API, Linux, Java & Bootstrap

Hello Fedora Community,

I am working on a project and would like some guidance. Here is my current progress and the issues I’m facing:

Progress so far:

  1. Backend developed in Java; basic functionality for creating and storing cards is working.
  2. Frontend built with Bootstrap; UI is responsive and basic forms are functional.
  3. Attempted API integration for external verification, and endpoints are set up.
  4. Successfully tested on Linux environment; application runs without crashing.

Current issue:

  1. When trying to fetch data via the API, the system sometimes does not return the expected results.
  2. Error logs indicate a connection timeout or null data.
  3. It is unclear whether the issue is in Java backend code, API configuration, or Linux setup.

Steps taken to resolve the issue:

  1. Verified API keys and endpoints multiple times.
  2. Tested API calls using Postman; they work fine there.
  3. Increased timeout settings in Java HTTP client.
  4. Checked firewall and network settings on Linux machine.

Despite all these steps, the issue still persists.

I would really appreciate any advice on:

  1. Debugging API integration issues in a Java/Linux environment.
  2. Suggestions for libraries or tools to handle API calls more reliably.
  3. Best practices for linking Bootstrap frontend with Java backend.

I am trying to build a digital membership card system.

The general approach is to add enough debug logging in the client and the server code to see what is going on.

You will want logs on accepting the connection, each piece of data you read and write, when you close the connection.

Also make sure that you are catching all exceptions, are you sure your code is not crashing?

You can also use tools like wireshark to watch the TCP connection as you test.
I would be running wireshark on the client and the server end.