Skip to content
New issue

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

TypeError in Configuration.gs #5

Open
clau-bucur opened this issue Feb 7, 2023 · 5 comments
Open

TypeError in Configuration.gs #5

clau-bucur opened this issue Feb 7, 2023 · 5 comments
Labels
question Further information is requested

Comments

@clau-bucur
Copy link

TypeError: Cannot find function endsWith in object https://xxx.
at unknown function

@clau-bucur clau-bucur changed the title TypeError in Configuration.cs TypeError in Configuration.gs Feb 7, 2023
@sagilo
Copy link
Owner

sagilo commented Feb 7, 2023

@clau-bucur can you please add some more details? when do you get this error? have you made any changes?

@sagilo sagilo added the question Further information is requested label Feb 7, 2023
@clau-bucur
Copy link
Author

Sorry seems that Github truncated my message.

I have imported the latest changes you made.
The issue is appears in Configuration.gs, line 32. TypeError: Cannot find function endsWith in object https://url.
at [unknown function] ( Configuration : 32 )

@sagilo
Copy link
Owner

sagilo commented Feb 8, 2023

endsWith
wndsWith is a valid method for the string, what have you set the HA_URL to?
Have you changed its type from string to URI maybe?

@clau-bucur
Copy link
Author

I have not changed it's type. Simply filled up the value between brackets.
image

@sagilo
Copy link
Owner

sagilo commented Feb 9, 2023

I did a small trial and it works as expected:
https://script.google.com/d/1DtlTfWZOGY3x202CzHvloGt7RdufhExZHJVXyjtzQanCVf1Px-j1CUC7/edit?usp=sharing
No errors show up.
Can you try creating a similar script, reproduce the issue and share a link?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants