Comments (9)
So I'm trying to track down this issue in hopes that it'll save you folks the time when you get back:
This line:
!q && 1 == _.qA(n) && n.hasOwnProperty("resource") && (q = "resource");
In this file looks suspicious:
I couldn't find the string "resource"
in any of the other requested files. I went poking around though the methods and properties have pointlessly short single character names.
from browser-samples.
Sorry for the slow reply. Have you had any luck figuring this out? I haven't been able to reproduce the problem, and it seems to be something specific to your production environment. Are you loading the libraries the same way there?
from browser-samples.
Hi Erick,
If you'd like to review a live test environment register at jabcreations.net, post your user name here and I'll upgrade that account to have enough permissions to view the scenario. I'll also have JavaScript console.log
before and after my fix so you have a bit more useful scenario to work with. I'll reply with further basic instructions late Wednesday afternoon (Eastern Standard Time).
from browser-samples.
Is this still an issue?
from browser-samples.
Very likely yes. I wrote the code so that it would work even if you guys fixed it. Please register an account at jabcreations.net (just a test domain) and I'll ensure that the code consoles what is going on. I'll upgrade your account once you let me know you've set it up so you have access for testing.
from browser-samples.
I'm personally not comfortable debugging code on your production site. If you can find a way to replicate the problem on the test page or domain I'd be happy to take a look.
from browser-samples.
Eric, the site is not producing anything and is simply a general test domain not used by any clients. Even if the whole domain did go down it wouldn't effect anyone. Additionally I absolutely do not have the time to create a dedicated test case. I've marked this bug as critical and have mentioned that lots of people have been encountering the issue without the insight to compare the JSON output being sent to Google's server. In addition to that I also pointed out the suspect code.
- Register an account so I can grant it webmaster permissions.
- Create an appointment request.
- Go to the Appointments review.
- Use any Google account you want to have the appointment request also added to a Google Calendar.
Here is the JavaScript that I implemented to work around the bug. For some reason GitHub's editing tools aren't working otherwise I'd format this post properly.
function gca_events_create(id,event)
{
event = window.atob(event);
eval('event = '+event);
event.description = event.description.replace(/\\n/g, '\n');
var request = gapi.client.calendar.events.insert({'calendarId': 'primary', 'resource': event});
if (request.Zq.k5.body.resource)
{
for (i = 0; i < Object.keys(request.Zq.k5.body.resource).length; i++) {request.Zq.k5.body[Object.keys(request.Zq.k5.body.resource)[i]] = request.Zq.k5.body.resource[Object.keys(request.Zq.k5.body.resource)[i]];}
delete request.Zq.k5.body.resource;
}
request.execute(function(event)
{
//gca_status_pre('Event created: ' + event.htmlLink);
id_('appointments_'+id+'_h3').replaceChild(document.importNode(new DOMParser().parseFromString('<a href="'+event.htmlLink+'" rel="noopener" tabindex="3" target="_blank" xmlns="http://www.w3.org/1999/xhtml">✓ '+id_('appointments_'+id+'_h3').tag_('span')[0].textContent+'</a>','application/xml').childNodes[0],true), id_('appointments_'+id+'_h3').tag_('span')[0]);
});
}
from browser-samples.
Thank you for your effort so far, and I appreciate that you don't have the time to invest in further narrowing down this issue. Unfortunately we have a policy of not debugging developers' code directly, and rely on our users to provide repro cases. At the moment you are the only developer reporting this issue, and the problem could be due to interactions with other libraries loaded in your application, etc. If there is an issue on Google's end it almost certainly is in the JavaScript client library, and it may make sense to work with that team going forward. I'm closing this issue for now.
from browser-samples.
I've posted this bug report here: google/google-api-javascript-client#482
from browser-samples.
Related Issues (20)
- discovery param when set generates a network 400 error HOT 1
- It prompts for consent even if you've granted consent before
- Google Picker Asking To Sign In Even After Providing Access Token HOT 2
- [SyncRepoSettings bot] - Invalid config file
- Page 404 for sheets/api/quickstart/javascript HOT 1
- api.js is going to depricate
- hub-registrations
- CI always shows as failed
- How to import the gapi library for using in a react app? HOT 1
- Mentioning the range or cells for writing data to a spreadsheet.
- Move a file to a different folder in using the drive api HOT 1
- How to get the refresh token? HOT 1
- appendPre(...) function is used in the Javascript Sources but never defined HOT 1
- Python 2 examples can be removed now
- Google Sheets to JSON data
- Two questions about Metadata Displayer Example HOT 1
- Drive API Quickstart - "Not a valid origin..." but there's no way to register one
- Error: Request had insufficient authentication scopes. HOT 2
- Dependency Dashboard
- google picker UI is not wokring HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browser-samples.