Skip to content
This repository has been archived by the owner on Aug 23, 2021. It is now read-only.

Unable to query any data from TinaCloud #293

Open
ACoolTurtle opened this issue Jun 27, 2021 · 12 comments
Open

Unable to query any data from TinaCloud #293

ACoolTurtle opened this issue Jun 27, 2021 · 12 comments
Labels
bug Something isn't working

Comments

@ACoolTurtle
Copy link

Description

No matter what the request is, TinaCloud's response is "Something went wrong".

Steps to reproduce

Make a Graphql request to the Tina Endpoint

Expected result

Data should be returned

Actual result

{"message":"Something went wrong."}
A vague error is returned.

Environment

Tinacms Package Versions


react-tinacms-editor@npm:0.41.1
react-tinacms-inline@npm:0.41.1
tinacms@npm:0.41.1

Tools

Tool Version
browser Chrome 91.0.4472.106
os Windows 10, WSL 2 Ubuntu
node 15.7.0
npm 7.4.3
@ACoolTurtle ACoolTurtle added the bug Something isn't working label Jun 27, 2021
@DirtyF

This comment has been minimized.

@DirtyF
Copy link
Contributor

DirtyF commented Jun 28, 2021

@ACoolTurtle We just deployed a fix, it should be good now.

@DirtyF DirtyF closed this as completed Jun 28, 2021
@ACoolTurtle
Copy link
Author

This issue still remains, however rather than a 500 error, I get a 404 with Something went wrong

@DirtyF
Copy link
Contributor

DirtyF commented Jun 28, 2021

Could you share a bit more information, what actions did you take? What is the GraphQL query?

@ACoolTurtle
Copy link
Author

Just the standard request

query GetMain($relativePath: String!) {
			getPageDocument(relativePath: $relativePath) {
				data {
					... on Page_Doc_Data {
						slug
						seo {
							description
							lang
							image
							title
							meta {
								content
								name
							}
						}
						menuLinks {
							title
							path
						}
						components {
							... on Carousel_Data {
								__typename
								images {
									image
								}
								height
								fade
								fadeTime
								fadeOnce
								delay
								toggle_fade_direction
							}
							... on FreeStyle_Data {
								__typename
								mdx
							}
							... on Title_Data {
								__typename
								titleText
								bodyTextMdx
								mdx
								fade
								toggle_fade
								fadeOpts
								fadeTime
								fadeOnce
								delay
								toggle_fade_direction
							}
							... on LinkGrid_Data {
								__typename
								grid {
									titleText
									description
									image
									mdx
									link
									linkText
								}
								fade
								fadeOpts
								fadeTime
								fadeOnce
								delay
								toggle_fade_direction
							}
							... on Banner_Data {
								__typename
								image
								height
								enableCenter
								mdx
								enableOffset
								offsetMdx
							}
							... on Section_Data {
								__typename
								mdx
								toggle_fade
								fade
								fadeOpts
								fadeTime
								fadeOnce
								delay
								toggle_fade_direction
							}
							... on SideBySide_Data {
								__typename
								left {
									enableIcon
									mdx
									toggle_fade_direction
									delay
									fadeOnce
									fadeTime
									fadeOpts
									enable_fade
								}
								right {
									enableIcon
									mdx
									toggle_fade_direction
									delay
									fadeOnce
									fadeTime
									fadeOpts
									enable_fade
								}
							}
						}
					}
				}
			}
		}

It works on the LocalClient just fine with the local version being 0.2.51.

@DirtyF DirtyF reopened this Jun 29, 2021
@DirtyF
Copy link
Contributor

DirtyF commented Jun 29, 2021

@ACoolTurtle Do you by any chance have a public repository to share so that we can reproduce the issue?

@logan-anderson
Copy link
Contributor

@ACoolTurtle Thanks for submitting this issue! if your unable to share your code that is more then ok! the only thing we would need to reproduce this error is your schema.ts file and any other files that are imported from it.

Since its working on your local environment and not on Tina Cloud I have a feeling it could be one of the following issues.

  1. You have not committed and pushed your schema.ts and all generated files to Github.
  2. The cloud version is out of date with the local version.
    • This is an issue on our end. We are working to find a solution to ensure the cloud version is up to date with the latest local version. @jamespohalloran do you happen to know that version of tina-graphql-gateway we are currently using on Tina Cloud?

@jamespohalloran
Copy link
Contributor

It's currently using "tina-graphql": "0.1.14"

@ACoolTurtle
Copy link
Author

@logan-anderson Sure, here is my schema, and the constants that are used. Thanks for your help
schema.ts.txt
schemaConstants.ts.txt

@logan-anderson
Copy link
Contributor

@ACoolTurtle Thanks! for the files.

I am not 100% sure but it seems that it is most likely the latter (point 2) I have a feeling that https://github.com/tinacms/tina-graphql-gateway/pull/304/files will fix it when it is merged and when Tina cloud bumps its version of "tina-graphql": "0.1.18".

We apologize for the inconvenience and will update you when it's working.

It's great to see such advanced usage of Tina Cloud! Thanks!

@ACoolTurtle
Copy link
Author

Thanks for your support! I really like the idea of Tina

@logan-anderson
Copy link
Contributor

logan-anderson commented Jul 7, 2021

@ACoolTurtle I just tested this and it looks like it is fixed (we update the version being used in the cloud).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants