First, I'd like to say that you folks are doing killer work, and I enthusiastically look forward to being able to use this regularly with the Principled BSDF shader in the upcoming Blender release.
That said, I'm not sure how well the exporter should be working currently, as I understand it's still in development, as is Blender 2.8, which makes it difficult for me to pinpoint the source of the errors.
I can't seem to export a simple cube to gltf or glb using the latest versions of both the exporter and Blender 2.8 with the settings below:

I use practically the same workflow and settings with Blender 2.79b and the glTF-Blender-Exporter, except I use the included glTF Metallic Roughness PBR nodes. In this case, I'm trying to use Blender's Principled BSDF shader and I'm getting the following errors:

This seems to be happening specifically when I check Export selected only, which I use often in my workflow.
I'm getting similar errors when trying the other options:




The only combination that appears to work is this:

However, it only seems to work the first time. After trying to re-export with those same settings, the resulting file is corrupt. It also exports all layers and doesn't let you select objects, which isn't typically ideal.
Here is a zip with the .blend file and a sample of the corrupt file:
exporter_test.zip
Blender version:

Exporter version:

OS: Windows 10 x64
Multiple bugs/enhancement here :
I get the same error if I start Blender 2.8 and try to export the default cube.
2.80\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_nodes.py", line 52, in __filter_node
if export_settings[gltf2_blender_export_keys.SELECTED] and not blender_object.select: AttributeError: 'Object' object has no attribute 'select'
location: <unknown location>:-1
@emackey This error is already fixed in master and in blender 2.8 git. This will be available in tomorrow's build
Still have to work on layer export option (see my TODO list on first comment of this issue )
Thank you! =)
In the most current commit 1ea67904175854feeebd70cec20d7222f8b4aa97 the issue with exporting two times in a row should be resolved. Also I removed the non functioning option to not export all layers
Nice! Thanks, @UX3D-becher.
I'm assuming Export selected only should also now work as expected?
Will test shortly.
Most of this appears to be working correctly now as far as I can tell. Kudos!
I noticed that the latest Blender 2.8 build now includes the importer/exporter, but I still needed to update it to get the bug fixes.
Should I close this?
I will close this issue myself tonight (GMT) after I merge this repo into Blender repo
Right on. Thanks, @julienduroure!
Is now in Blender repo
Hi people! I am also using Blender 2.8 with the Verge3D add-on and getting the keyword argument error. What does this mean and how can I fix it? I was able to export before with the same settings but looks like something has gone wrong somewhere down the line and cannot figure out what! Please see my attached screenshot.

@NightOwlVR We're the open-source plugin, which is different from Verge 3D. You should file your issue with Soft8soft tech support if you're using their plugin instead of ours.
Oh yes, I see. Thanks for the reply! I have made a new post here: https://github.com/NightOwlVR/Verge3D-for-Blender/issues/1
Most helpful comment
@emackey This error is already fixed in master and in blender 2.8 git. This will be available in tomorrow's build
Still have to work on layer export option (see my TODO list on first comment of this issue )