https://discord.gg/botpress logo
Guys, tell me what could be the problem? situation...
# 💻developers
b
Guys, tell me what could be the problem? situation: I make an API request and receive JSON data. The data is displayed in the console, but the same data is not displayed in the dialog through the variable workfow.s2 Very strange behavior here is my code const searchData = { action: 'search_d', name: 'bob' }; const url = 'https://script.google.com/macros/111122223333'; axios.post(url, searchData, { headers: { 'Content-Type': 'application/json' } }).then(response => { console.log('Search response.data:', response.data); if (response.data && response.data.results) { workflow.s2 = response.data; } else { console.error('Failed to search data. Response:', response.data); } }).catch(error => { console.error('Error:', error.message); }); https://cdn.discordapp.com/attachments/1121494527727902891/1272939034284654683/image.png?ex=66bccc5b&is=66bb7adb&hm=01fb682a01d6eb994f1b1f88d9e02be15116b8e79e18d8e5a266a3cbfc721834&