check json format
This commit is contained in:
		
							parent
							
								
									ac6dffa129
								
							
						
					
					
						commit
						1301c145e8
					
				@ -23,7 +23,10 @@ export async function post(path, body) {
 | 
			
		||||
 | 
			
		||||
    console.log("Initial data from API:", res)
 | 
			
		||||
 | 
			
		||||
    const data = JSON.parse(await res.text());
 | 
			
		||||
    const txt = await res.text();
 | 
			
		||||
    console.log("Initial text from API:", txt)
 | 
			
		||||
 | 
			
		||||
    const data = JSON.parse(txt);
 | 
			
		||||
 | 
			
		||||
    console.log("Data from API:", data)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user