Wie kann ich den SSL -Fehler bei React Native umgehen?Java

Java-Forum
Anonymous
 Wie kann ich den SSL -Fehler bei React Native umgehen?

Post by Anonymous »

Hallo, können Sie mir diesen Fehler "Axios Fehler: Netzwerkfehler" sagen, wenn ich ihn auf gpt auffordert

Code: Select all

import axios from "axios";

const API_URL = "http://apex.oracle.com/pls/apex/khazana_one/hr/empinfo/";

const fetchData = async () => {
try {
const response = await axios.get(API_URL, {

headers: {
"Accept": "application/json",
"Content-Type": "application/json"
},
timeout: 10000, // Prevents infinite loading
validateStatus: () => true

});

console.log("API Response:", response.data);
return response.data;
} catch (error) {
console.error("Axios Error:", error.message);

}
};

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post