We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When i try with following ways i got some issues,
let todo = createResource({ url: 'http://127.0.0.1:8000/api/method/ping', method: 'GET' }) todo.fetch()
let todo = createResource({ url: 'http://127.0.0.1:8000/api/resource/ToDo', method: 'GET' }) todo.fetch()
let todo = createResource({ url: 'http://127.0.0.1:8000/api/resource/ToDo', method: 'GET', headers: { 'Authorization': `token 73b6530029d4dea:eee2a9432d87585`, } }) todo.fetch()
async function fetchAllFields() { try { const response = await fetch('https://jsonplaceholder.typicode.com/posts/1', { method: 'GET', }); if (!response.ok) { throw new Error(`Error: ${response.status}`); } const data = await response.json(); console.log(data); } catch (error) { console.error("Fetch error:", error); } } fetchAllFields()
let postVar = createResource({ url: 'https://jsonplaceholder.typicode.com/posts/1', method: 'GET', }) postVar.fetch()
let postVar = createResource({ url: 'http://127.0.0.1:8000/api/method/finsta.finsta.doctype.post.post.get_posts_with_likes_and_comments', method: 'GET', }) postVar.fetch()
It is working when i call api which is whitelisted otherwise it is not getting any data in response as i showed in 1,2,3 and 5??
@netchampfaris
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When i try with following ways i got some issues,
It is working when i call api which is whitelisted otherwise it is not getting any data in response as i showed in 1,2,3 and 5??
@netchampfaris
The text was updated successfully, but these errors were encountered: